1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-20 16:22:28 +03:00

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