From f2e9617038267e7daa2b85c7bc54fbfcb6464cfe Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 25 Mar 2021 12:09:08 -0400 Subject: [PATCH] Adding autocomplete for login fields. Fixes #206 --- src/shared/components/login.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shared/components/login.tsx b/src/shared/components/login.tsx index 30b7121..b68795e 100644 --- a/src/shared/components/login.tsx +++ b/src/shared/components/login.tsx @@ -117,6 +117,7 @@ export class Login extends Component { 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 { 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 { class="form-control" placeholder={i18n.t("optional")} value={this.state.registerForm.email} + autoComplete="email" onInput={linkEvent(this, this.handleRegisterEmailChange)} minLength={3} /> -- 2.44.1