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:
kolaente 2026-03-31 23:48:42 +02:00 committed by kolaente
parent 020aa899f8
commit cdd46c0d6c
1 changed files with 3 additions and 1 deletions

View File

@ -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>