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:
parent
0770a1ed61
commit
0157c048ab
@ -60,7 +60,7 @@ let LoginForm = React.createClass({
|
||||
GlobalNotificationActions.appendGlobalNotification(notification);
|
||||
|
||||
if(success) {
|
||||
UserActions.fetchCurrentUser();
|
||||
UserActions.fetchCurrentUser(true);
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user