From cdd46c0d6c31fd53b161a7a722dd5b8c8f7e7a55 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 31 Mar 2026 23:48:42 +0200 Subject: [PATCH] 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 --- frontend/src/views/user/settings/EmailUpdate.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/user/settings/EmailUpdate.vue b/frontend/src/views/user/settings/EmailUpdate.vue index b7b313c7f..874923ce7 100644 --- a/frontend/src/views/user/settings/EmailUpdate.vue +++ b/frontend/src/views/user/settings/EmailUpdate.vue @@ -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" />