Adding autocomplete for login fields. Fixes #206

This commit is contained in:
Dessalines 2021-03-25 12:09:08 -04:00
parent 1c5b86353d
commit f2e9617038

View file

@ -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}
/>