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" id="login-email-or-username"
value={this.state.loginForm.username_or_email} value={this.state.loginForm.username_or_email}
onInput={linkEvent(this, this.handleLoginUsernameChange)} onInput={linkEvent(this, this.handleLoginUsernameChange)}
autoComplete="email"
required required
minLength={3} minLength={3}
/> />
@ -133,6 +134,7 @@ export class Login extends Component<any, State> {
value={this.state.loginForm.password} value={this.state.loginForm.password}
onInput={linkEvent(this, this.handleLoginPasswordChange)} onInput={linkEvent(this, this.handleLoginPasswordChange)}
class="form-control" class="form-control"
autoComplete="current-password"
required required
maxLength={60} maxLength={60}
/> />
@ -195,6 +197,7 @@ export class Login extends Component<any, State> {
class="form-control" class="form-control"
placeholder={i18n.t("optional")} placeholder={i18n.t("optional")}
value={this.state.registerForm.email} value={this.state.registerForm.email}
autoComplete="email"
onInput={linkEvent(this, this.handleRegisterEmailChange)} onInput={linkEvent(this, this.handleRegisterEmailChange)}
minLength={3} minLength={3}
/> />