Normalize whitespace in PasswordLogin

This commit is contained in:
J. Ryan Stinnett 2019-03-06 10:57:38 +00:00
parent bc54ea5623
commit df9888614b

View file

@ -180,7 +180,7 @@ class PasswordLogin extends React.Component {
return <Field return <Field
className={classNames(classes)} className={classNames(classes)}
id="mx_PasswordLogin_email" id="mx_PasswordLogin_email"
ref={(e) => {this._loginField = e;}} ref={(e) => { this._loginField = e; }}
name="username" // make it a little easier for browser's remember-password name="username" // make it a little easier for browser's remember-password
key="email_input" key="email_input"
type="text" type="text"
@ -196,7 +196,7 @@ class PasswordLogin extends React.Component {
return <Field return <Field
className={classNames(classes)} className={classNames(classes)}
id="mx_PasswordLogin_username" id="mx_PasswordLogin_username"
ref={(e) => {this._loginField = e;}} ref={(e) => { this._loginField = e; }}
name="username" // make it a little easier for browser's remember-password name="username" // make it a little easier for browser's remember-password
key="username_input" key="username_input"
type="text" type="text"
@ -339,19 +339,19 @@ class PasswordLogin extends React.Component {
{editLink} {editLink}
</h3> </h3>
<form onSubmit={this.onSubmitForm}> <form onSubmit={this.onSubmitForm}>
{ loginType } {loginType}
{ loginField } {loginField}
<Field <Field
className={pwFieldClass} className={pwFieldClass}
id="mx_PasswordLogin_password" id="mx_PasswordLogin_password"
ref={(e) => {this._passwordField = e;}} ref={(e) => { this._passwordField = e; }}
type="password" type="password"
name="password" name="password"
label={_t('Password')} label={_t('Password')}
value={this.state.password} value={this.state.password}
onChange={this.onPasswordChanged} onChange={this.onPasswordChanged}
/> />
{ forgotPasswordJsx } {forgotPasswordJsx}
<input className="mx_Login_submit" <input className="mx_Login_submit"
type="submit" type="submit"
value={_t('Sign in')} value={_t('Sign in')}