From e0e873d0a8779850e50aac644aa166f92e813d39 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Wed, 23 Jan 2019 14:24:20 -0600 Subject: [PATCH] Remove create account from forgot password --- src/components/structures/MatrixChat.js | 1 - src/components/structures/auth/ForgotPassword.js | 10 ---------- src/i18n/strings/en_EN.json | 2 +- 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index 4c783eedac..d5ad130edd 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -1955,7 +1955,6 @@ export default React.createClass({ customHsUrl={this.getCurrentHsUrl()} customIsUrl={this.getCurrentIsUrl()} onComplete={this.onLoginClick} - onRegisterClick={this.onRegisterClick} onLoginClick={this.onLoginClick} /> ); } diff --git a/src/components/structures/auth/ForgotPassword.js b/src/components/structures/auth/ForgotPassword.js index b2dc2a47eb..3ff459d20e 100644 --- a/src/components/structures/auth/ForgotPassword.js +++ b/src/components/structures/auth/ForgotPassword.js @@ -34,7 +34,6 @@ module.exports = React.createClass({ customHsUrl: PropTypes.string, customIsUrl: PropTypes.string, onLoginClick: PropTypes.func, - onRegisterClick: PropTypes.func, onComplete: PropTypes.func.isRequired, // The default server name to use when the user hasn't specified @@ -168,12 +167,6 @@ module.exports = React.createClass({ this.props.onLoginClick(); }, - onRegisterClick: function(ev) { - ev.preventDefault(); - ev.stopPropagation(); - this.props.onRegisterClick(); - }, - showErrorDialog: function(body, title) { const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog"); Modal.createTrackedDialog('Forgot Password Error', '', ErrorDialog, { @@ -266,9 +259,6 @@ module.exports = React.createClass({ { _t('Return to login screen') } - - { _t('Create an account') } - ); diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index e8f82959b3..786531fb02 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -1316,7 +1316,6 @@ "New password": "New password", "Confirm your new password": "Confirm your new password", "Send Reset Email": "Send Reset Email", - "Create an account": "Create an account", "Invalid homeserver discovery response": "Invalid homeserver discovery response", "Invalid identity server discovery response": "Invalid identity server discovery response", "General failure": "General failure", @@ -1335,6 +1334,7 @@ "Sign in with single sign-on": "Sign in with single sign-on", "Try the app first": "Try the app first", "Sign in to your account": "Sign in to your account", + "Create an account": "Create an account", "Failed to fetch avatar URL": "Failed to fetch avatar URL", "Set a display name:": "Set a display name:", "Upload an avatar:": "Upload an avatar:",