fix: add proper autocomplete and name attributes to email update form
Adds name="email" to the email field and fixes the password field's autocomplete from the invalid "password" to "current-password", also adding name="current-password". This helps password managers correctly identify the form as a settings change rather than a login form, preventing them from autofilling the username into the email field. Closes go-vikunja/vikunja#2512
This commit is contained in:
parent
020aa899f8
commit
cdd46c0d6c
|
|
@ -10,6 +10,7 @@
|
|||
:label="$t('user.settings.updateEmailNew')"
|
||||
:placeholder="$t('user.auth.emailPlaceholder')"
|
||||
type="email"
|
||||
name="email"
|
||||
autocomplete="email"
|
||||
@keyup.enter="updateEmail"
|
||||
/>
|
||||
|
|
@ -19,7 +20,8 @@
|
|||
:label="$t('user.settings.currentPassword')"
|
||||
:placeholder="$t('user.settings.currentPasswordPlaceholder')"
|
||||
type="password"
|
||||
autocomplete="password"
|
||||
name="current-password"
|
||||
autocomplete="current-password"
|
||||
@keyup.enter="updateEmail"
|
||||
/>
|
||||
</form>
|
||||
|
|
|
|||
Loading…
Reference in New Issue