Sign in form best practice

This should enable the registration app to set a new-password autocomplete field.
This commit is contained in:
kevin147147 2021-04-01 18:38:57 +02:00 committed by GitHub
parent 5fb909faa5
commit 5ae81ab0b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@
type="text"
name="user"
autocapitalize="off"
:autocomplete="autoCompleteAllowed ? 'on' : 'off'"
:autocomplete="autoCompleteAllowed ? 'username' : 'off'"
:placeholder="t('core', 'Username or email')"
:aria-label="t('core', 'Username or email')"
required
@ -75,7 +75,7 @@
:type="passwordInputType"
class="password-with-toggle"
name="password"
:autocomplete="autoCompleteAllowed ? 'on' : 'off'"
:autocomplete="autoCompleteAllowed ? 'current-password' : 'off'"
:placeholder="t('core', 'Password')"
:aria-label="t('core', 'Password')"
required>