From 8e12c4a3b8bc68ec6067305a9eae4d77f0656d29 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Wed, 6 Feb 2019 15:58:31 +0000 Subject: [PATCH] Normalize URL naming for reset password --- src/components/structures/auth/ForgotPassword.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/structures/auth/ForgotPassword.js b/src/components/structures/auth/ForgotPassword.js index 1e8d223bdb..9583fac270 100644 --- a/src/components/structures/auth/ForgotPassword.js +++ b/src/components/structures/auth/ForgotPassword.js @@ -47,8 +47,8 @@ module.exports = React.createClass({ getInitialState: function() { return { - enteredHomeserverUrl: this.props.customHsUrl || this.props.defaultHsUrl, - enteredIdentityServerUrl: this.props.customIsUrl || this.props.defaultIsUrl, + enteredHsUrl: this.props.customHsUrl || this.props.defaultHsUrl, + enteredIsUrl: this.props.customIsUrl || this.props.defaultIsUrl, progress: null, password: null, password2: null, @@ -126,7 +126,7 @@ module.exports = React.createClass({ onFinished: (confirmed) => { if (confirmed) { this.submitPasswordReset( - this.state.enteredHomeserverUrl, this.state.enteredIdentityServerUrl, + this.state.enteredHsUrl, this.state.enteredIsUrl, this.state.email, this.state.password, ); } @@ -153,10 +153,10 @@ module.exports = React.createClass({ onServerConfigChange: function(config) { const newState = {}; if (config.hsUrl !== undefined) { - newState.enteredHomeserverUrl = config.hsUrl; + newState.enteredHsUrl = config.hsUrl; } if (config.isUrl !== undefined) { - newState.enteredIdentityServerUrl = config.isUrl; + newState.enteredIsUrl = config.isUrl; } this.setState(newState); },