From 59ba5fe62a7e1b6caaecf746e58d0a37d01a92ee Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 7 Jun 2019 07:36:46 -0600 Subject: [PATCH] Don't block submit if the server is dead But still check so we can clear any errors, maybe --- src/components/structures/auth/ForgotPassword.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/structures/auth/ForgotPassword.js b/src/components/structures/auth/ForgotPassword.js index 62a67c7ec5..3380ea6dac 100644 --- a/src/components/structures/auth/ForgotPassword.js +++ b/src/components/structures/auth/ForgotPassword.js @@ -82,10 +82,8 @@ module.exports = React.createClass({ serverConfig.isUrl, ); this.setState({serverIsAlive: true}); - return true; } catch (e) { this.setState(AutoDiscoveryUtils.authComponentStateForError(e)); - return false; } }, @@ -122,8 +120,7 @@ module.exports = React.createClass({ onSubmitForm: async function(ev) { ev.preventDefault(); - const shouldBlockSubmit = await this._checkServerLiveliness(this.props.serverConfig); - if (shouldBlockSubmit) return; + await this._checkServerLiveliness(this.props.serverConfig); if (!this.state.email) { this.showErrorDialog(_t('The email address linked to your account must be entered.'));