Implement dialog to set password
Until https://github.com/matrix-org/matrix-react-sdk/pull/881, ChangePassword will not know about the cached password (so it won't hide "Current Password" yet). There's also a bit of work left - informing the SessionStore that the password has changed (marked with a TODO)
This commit is contained in:
parent
607ba57f48
commit
0e787a09c3
4 changed files with 130 additions and 6 deletions
|
@ -22,12 +22,12 @@ import Modal from 'matrix-react-sdk/lib/Modal';
|
|||
|
||||
export default React.createClass({
|
||||
onUpdateClicked: function() {
|
||||
// TODO: Implement dialog to set password
|
||||
// const SetPasswordDialog = sdk.getComponent('dialogs.SetPasswordDialog');
|
||||
// Modal.createDialog(SetPasswordDialog, {
|
||||
// onFinished: () => {
|
||||
// }
|
||||
// });
|
||||
const SetPasswordDialog = sdk.getComponent('dialogs.SetPasswordDialog');
|
||||
Modal.createDialog(SetPasswordDialog, {
|
||||
onFinished: () => {
|
||||
//TODO: Notify SessionStore of changed password: dispatch password_changed
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
render: function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue