From f97b4f92f0dd9c9c0f5d6ae05be77aa7229e0622 Mon Sep 17 00:00:00 2001 From: Tronax Date: Sun, 16 Aug 2026 16:51:16 +0200 Subject: [PATCH] fix(auth): make login/signup fields password-manager friendly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Password managers (1Password, Bitwarden, …) could not reliably detect or fill the auth fields because the inputs were loose labels inside a div with no real form, no name attributes, and a static autocomplete hint. Changes: - Wrap the auth card in a real
so password managers recognize the credential form and its submit flow - Add id/name attributes to all fields (username, displayName, password) - Use a dynamic autocomplete hint on the password field: current-password for login (autofill) and new-password for registration (offer a generated strong password) - Set autocomplete="nickname" on the display-name field so it is not mistaken for a username or password field - Mark the close, tab-switch, and OIDC buttons as type="button" so they no longer default to type="submit" and trigger form submission - Make the primary action a type="submit" button so Enter submits natively - Add margin: 0 to .card since it is now a form element --- src/components/AuthModal.vue | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/src/components/AuthModal.vue b/src/components/AuthModal.vue index 3062cc5..bf8dd0e 100644 --- a/src/components/AuthModal.vue +++ b/src/components/AuthModal.vue @@ -1,5 +1,5 @@