Merge pull request #3473 from matrix-org/jryans/rm-id-server-reg-and-reset

Remove id_server param from threepid_creds
This commit is contained in:
J. Ryan Stinnett 2019-09-24 17:34:45 +01:00 committed by GitHub
commit 17e42eacd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 44 additions and 36 deletions

View file

@ -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) {