mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
Normalize whitespace in PasswordLogin
This commit is contained in:
parent
bc54ea5623
commit
df9888614b
@ -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,13 +196,13 @@ 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"
|
||||||
label={SdkConfig.get().disable_custom_urls ?
|
label={SdkConfig.get().disable_custom_urls ?
|
||||||
_t("Username on %(hs)s", {
|
_t("Username on %(hs)s", {
|
||||||
hs: this.props.hsUrl.replace(/^https?:\/\//, ''),
|
hs: this.props.hsUrl.replace(/^https?:\/\//, ''),
|
||||||
}) : _t("Username")}
|
}) : _t("Username")}
|
||||||
value={this.state.username}
|
value={this.state.username}
|
||||||
onChange={this.onUsernameChanged}
|
onChange={this.onUsernameChanged}
|
||||||
@ -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')}
|
||||||
|
Loading…
Reference in New Issue
Block a user