Merge pull request #3737 from prince0xdev/fix/login-autocomplete-username
Some checks are pending
Node.js CI / build (postgresql, 18.18, 10) (push) Waiting to run
Create docker images (cloud) / Build, push, and deploy (push) Waiting to run

fix: correct autocomplete attributes to enable password manager autofill
This commit is contained in:
Mike Cao 2025-11-12 21:38:12 -08:00 committed by GitHub
commit 9fbcec46af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,15 +44,16 @@ export function LoginForm() {
name="username"
rules={{ required: formatMessage(labels.required) }}
>
<TextField autoComplete="off" />
<TextField autoComplete="username" />
</FormField>
<FormField
label={formatMessage(labels.password)}
data-test="input-password"
name="password"
rules={{ required: formatMessage(labels.required) }}
>
<PasswordField />
<PasswordField autoComplete="current-password" />
</FormField>
<FormButtons>
<FormSubmitButton