From: Dessalines Date: Thu, 25 Mar 2021 16:09:08 +0000 (-0400) Subject: Adding autocomplete for login fields. Fixes #206 X-Git-Url: http://these/git/readmes/%7B%60%24%7BwebArchiveUrl%7D/save/static/%7BrepoUrl%7D?a=commitdiff_plain;h=f2e9617038267e7daa2b85c7bc54fbfcb6464cfe;p=lemmy-ui.git Adding autocomplete for login fields. Fixes #206 --- 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} />