Merge pull request #3737 from prince0xdev/fix/login-autocomplete-username
fix: correct autocomplete attributes to enable password manager autofill
This commit is contained in:
@@ -44,15 +44,16 @@ export function LoginForm() {
|
|||||||
name="username"
|
name="username"
|
||||||
rules={{ required: formatMessage(labels.required) }}
|
rules={{ required: formatMessage(labels.required) }}
|
||||||
>
|
>
|
||||||
<TextField autoComplete="off" />
|
<TextField autoComplete="username" />
|
||||||
</FormField>
|
</FormField>
|
||||||
|
|
||||||
<FormField
|
<FormField
|
||||||
label={formatMessage(labels.password)}
|
label={formatMessage(labels.password)}
|
||||||
data-test="input-password"
|
data-test="input-password"
|
||||||
name="password"
|
name="password"
|
||||||
rules={{ required: formatMessage(labels.required) }}
|
rules={{ required: formatMessage(labels.required) }}
|
||||||
>
|
>
|
||||||
<PasswordField />
|
<PasswordField autoComplete="current-password" />
|
||||||
</FormField>
|
</FormField>
|
||||||
<FormButtons>
|
<FormButtons>
|
||||||
<FormSubmitButton
|
<FormSubmitButton
|
||||||
|
|||||||
Reference in New Issue
Block a user