Skip to content

Commit 48856c3

Browse files
author
Luke Barnard
committed
Dispatch password_changed when SetPasswordDialog finished
1 parent e367fb5 commit 48856c3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎src/components/views/globals/PasswordNagBar.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ export default React.createClass({
2525
const SetPasswordDialog = sdk.getComponent('dialogs.SetPasswordDialog');
2626
Modal.createDialog(SetPasswordDialog, {
2727
onFinished: () => {
28-
//TODO: Notify SessionStore of changed password: dispatch password_changed
28+
// Notify SessionStore that the user's password was changed
29+
dis.dispatch({
30+
action: 'password_changed',
31+
});
2932
}
3033
});
3134
},

0 commit comments

Comments
 (0)