Dispatch password_changed when SetPasswordDialog finished

pull/3921/head
Luke Barnard 2017-05-16 13:48:56 +01:00
parent e367fb5a98
commit 48856c31f8
1 changed files with 4 additions and 1 deletions

View File

@ -25,7 +25,10 @@ export default React.createClass({
const SetPasswordDialog = sdk.getComponent('dialogs.SetPasswordDialog');
Modal.createDialog(SetPasswordDialog, {
onFinished: () => {
//TODO: Notify SessionStore of changed password: dispatch password_changed
// Notify SessionStore that the user's password was changed
dis.dispatch({
action: 'password_changed',
});
}
});
},