1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 17:33:14 +01:00

Add cache invalidation for signup and login

This commit is contained in:
Tim Daubenschütz 2015-11-02 15:38:37 +01:00
parent 0770a1ed61
commit 0157c048ab
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ let LoginForm = React.createClass({
GlobalNotificationActions.appendGlobalNotification(notification);
if(success) {
UserActions.fetchCurrentUser();
UserActions.fetchCurrentUser(true);
}
},

View File

@ -61,7 +61,7 @@ let SignupForm = React.createClass({
// Refactor this to its own component
this.props.handleSuccess(getLangText('We sent an email to your address') + ' ' + response.user.email + ', ' + getLangText('please confirm') + '.');
} else {
UserActions.fetchCurrentUser();
UserActions.fetchCurrentUser(true);
}
},