Remove id_server param for password reset
For HSes that no longer need it, remove the id_server param from password reset. Part of https://github.com/vector-im/riot-web/issues/10941
This commit is contained in:
parent
7113772f9d
commit
0c51e41ea4
2 changed files with 22 additions and 14 deletions
|
@ -117,17 +117,18 @@ module.exports = createReactClass({
|
|||
});
|
||||
},
|
||||
|
||||
onVerify: function(ev) {
|
||||
onVerify: async function(ev) {
|
||||
ev.preventDefault();
|
||||
if (!this.reset) {
|
||||
console.error("onVerify called before submitPasswordReset!");
|
||||
return;
|
||||
}
|
||||
this.reset.checkEmailLinkClicked().done((res) => {
|
||||
try {
|
||||
await this.reset.checkEmailLinkClicked();
|
||||
this.setState({ phase: PHASE_DONE });
|
||||
}, (err) => {
|
||||
} catch (err) {
|
||||
this.showErrorDialog(err.message);
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
onSubmitForm: async function(ev) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue