]> Untitled Git - lemmy-ui.git/commitdiff
Adding autocomplete for login fields. Fixes #206
authorDessalines <tyhou13@gmx.com>
Thu, 25 Mar 2021 16:09:08 +0000 (12:09 -0400)
committerDessalines <tyhou13@gmx.com>
Thu, 25 Mar 2021 16:09:08 +0000 (12:09 -0400)
src/shared/components/login.tsx

index 30b7121380a07510b34a6bb89d17d8fc8c02fe76..b68795e545add6c99a759d07b2135e514a311ca1 100644 (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}
             />