mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-10 02:15:11 +00:00
Adding autocomplete for login fields. Fixes #206
This commit is contained in:
parent
1c5b86353d
commit
f2e9617038
|
@ -117,6 +117,7 @@ export class Login extends Component<any, State> {
|
|||
id="login-email-or-username"
|
||||
value={this.state.loginForm.username_or_email}
|
||||
onInput={linkEvent(this, this.handleLoginUsernameChange)}
|
||||
autoComplete="email"
|
||||
required
|
||||
minLength={3}
|
||||
/>
|
||||
|
@ -133,6 +134,7 @@ export class Login extends Component<any, State> {
|
|||
value={this.state.loginForm.password}
|
||||
onInput={linkEvent(this, this.handleLoginPasswordChange)}
|
||||
class="form-control"
|
||||
autoComplete="current-password"
|
||||
required
|
||||
maxLength={60}
|
||||
/>
|
||||
|
@ -195,6 +197,7 @@ export class Login extends Component<any, State> {
|
|||
class="form-control"
|
||||
placeholder={i18n.t("optional")}
|
||||
value={this.state.registerForm.email}
|
||||
autoComplete="email"
|
||||
onInput={linkEvent(this, this.handleRegisterEmailChange)}
|
||||
minLength={3}
|
||||
/>
|
||||
|
|
Loading…
Reference in a new issue