From 302e601fa19ec374724f0a8e8c8035f14b232c4b Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Tue, 5 Mar 2019 15:39:51 +0000 Subject: [PATCH] Convert forgot password to Field component This converts all fields in the forgot password form to use the Field component. --- .../structures/auth/ForgotPassword.js | 24 ++++++++++++++----- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/src/components/structures/auth/ForgotPassword.js b/src/components/structures/auth/ForgotPassword.js index 58deb380e3..f0a53e5063 100644 --- a/src/components/structures/auth/ForgotPassword.js +++ b/src/components/structures/auth/ForgotPassword.js @@ -230,6 +230,8 @@ module.exports = React.createClass({ }, renderForgot() { + const Field = sdk.getComponent('elements.Field'); + let errorText = null; const err = this.state.errorText || this.props.defaultServerDiscoveryError; if (err) { @@ -275,23 +277,33 @@ module.exports = React.createClass({ {errorText}
- + autoFocus + />
- - + + />
{_t( 'A verification email will be sent to your inbox to confirm ' +