Remove create account from forgot password

This commit is contained in:
J. Ryan Stinnett 2019-01-23 14:24:20 -06:00
parent 2bb5a1d6ef
commit e0e873d0a8
3 changed files with 1 additions and 12 deletions

View file

@ -1955,7 +1955,6 @@ export default React.createClass({
customHsUrl={this.getCurrentHsUrl()} customHsUrl={this.getCurrentHsUrl()}
customIsUrl={this.getCurrentIsUrl()} customIsUrl={this.getCurrentIsUrl()}
onComplete={this.onLoginClick} onComplete={this.onLoginClick}
onRegisterClick={this.onRegisterClick}
onLoginClick={this.onLoginClick} /> onLoginClick={this.onLoginClick} />
); );
} }

View file

@ -34,7 +34,6 @@ module.exports = React.createClass({
customHsUrl: PropTypes.string, customHsUrl: PropTypes.string,
customIsUrl: PropTypes.string, customIsUrl: PropTypes.string,
onLoginClick: PropTypes.func, onLoginClick: PropTypes.func,
onRegisterClick: PropTypes.func,
onComplete: PropTypes.func.isRequired, onComplete: PropTypes.func.isRequired,
// The default server name to use when the user hasn't specified // The default server name to use when the user hasn't specified
@ -168,12 +167,6 @@ module.exports = React.createClass({
this.props.onLoginClick(); this.props.onLoginClick();
}, },
onRegisterClick: function(ev) {
ev.preventDefault();
ev.stopPropagation();
this.props.onRegisterClick();
},
showErrorDialog: function(body, title) { showErrorDialog: function(body, title) {
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog"); const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
Modal.createTrackedDialog('Forgot Password Error', '', ErrorDialog, { Modal.createTrackedDialog('Forgot Password Error', '', ErrorDialog, {
@ -266,9 +259,6 @@ module.exports = React.createClass({
<a className="mx_Login_create" onClick={this.onLoginClick} href="#"> <a className="mx_Login_create" onClick={this.onLoginClick} href="#">
{ _t('Return to login screen') } { _t('Return to login screen') }
</a> </a>
<a className="mx_Login_create" onClick={this.onRegisterClick} href="#">
{ _t('Create an account') }
</a>
</div> </div>
</div> </div>
); );

View file

@ -1316,7 +1316,6 @@
"New password": "New password", "New password": "New password",
"Confirm your new password": "Confirm your new password", "Confirm your new password": "Confirm your new password",
"Send Reset Email": "Send Reset Email", "Send Reset Email": "Send Reset Email",
"Create an account": "Create an account",
"Invalid homeserver discovery response": "Invalid homeserver discovery response", "Invalid homeserver discovery response": "Invalid homeserver discovery response",
"Invalid identity server discovery response": "Invalid identity server discovery response", "Invalid identity server discovery response": "Invalid identity server discovery response",
"General failure": "General failure", "General failure": "General failure",
@ -1335,6 +1334,7 @@
"Sign in with single sign-on": "Sign in with single sign-on", "Sign in with single sign-on": "Sign in with single sign-on",
"Try the app first": "Try the app first", "Try the app first": "Try the app first",
"Sign in to your account": "Sign in to your account", "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", "Failed to fetch avatar URL": "Failed to fetch avatar URL",
"Set a display name:": "Set a display name:", "Set a display name:": "Set a display name:",
"Upload an avatar:": "Upload an avatar:", "Upload an avatar:": "Upload an avatar:",