From df9888614bf1e27a5611e3c9e8f14fe74a67677b Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Wed, 6 Mar 2019 10:57:38 +0000 Subject: [PATCH] Normalize whitespace in PasswordLogin --- src/components/views/auth/PasswordLogin.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/views/auth/PasswordLogin.js b/src/components/views/auth/PasswordLogin.js index 169d36f0c0..4b095d405f 100644 --- a/src/components/views/auth/PasswordLogin.js +++ b/src/components/views/auth/PasswordLogin.js @@ -180,7 +180,7 @@ class PasswordLogin extends React.Component { return {this._loginField = e;}} + ref={(e) => { this._loginField = e; }} name="username" // make it a little easier for browser's remember-password key="email_input" type="text" @@ -196,13 +196,13 @@ class PasswordLogin extends React.Component { return {this._loginField = e;}} + ref={(e) => { this._loginField = e; }} name="username" // make it a little easier for browser's remember-password key="username_input" type="text" label={SdkConfig.get().disable_custom_urls ? _t("Username on %(hs)s", { - hs: this.props.hsUrl.replace(/^https?:\/\//, ''), + hs: this.props.hsUrl.replace(/^https?:\/\//, ''), }) : _t("Username")} value={this.state.username} onChange={this.onUsernameChanged} @@ -339,19 +339,19 @@ class PasswordLogin extends React.Component { {editLink}
- { loginType } - { loginField } + {loginType} + {loginField} {this._passwordField = e;}} + ref={(e) => { this._passwordField = e; }} type="password" name="password" label={_t('Password')} value={this.state.password} onChange={this.onPasswordChanged} /> - { forgotPasswordJsx } + {forgotPasswordJsx}