mirror of
https://github.com/ascribe/onion.git
synced 2025-02-14 21:10:27 +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);
|
GlobalNotificationActions.appendGlobalNotification(notification);
|
||||||
|
|
||||||
if(success) {
|
if(success) {
|
||||||
UserActions.fetchCurrentUser();
|
UserActions.fetchCurrentUser(true);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ let SignupForm = React.createClass({
|
|||||||
// Refactor this to its own component
|
// Refactor this to its own component
|
||||||
this.props.handleSuccess(getLangText('We sent an email to your address') + ' ' + response.user.email + ', ' + getLangText('please confirm') + '.');
|
this.props.handleSuccess(getLangText('We sent an email to your address') + ' ' + response.user.email + ', ' + getLangText('please confirm') + '.');
|
||||||
} else {
|
} else {
|
||||||
UserActions.fetchCurrentUser();
|
UserActions.fetchCurrentUser(true);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user