From cf63f27839c714acf20b3a6631abd42c1aa0e8ba Mon Sep 17 00:00:00 2001 From: Tronax Date: Sun, 16 Aug 2026 16:58:51 +0200 Subject: [PATCH] fix(auth): split login and signup into separate 1Password-compatible forms 1Password showed "No items to display" on the signup password field because login and registration shared a single form whose password input switched autocomplete between current-password and new-password, and the display-name field was dynamically added via v-if. Per 1Password compatible website design, unrelated flows must be separate forms with stable fields. Changes: - Split into two distinct
elements: login (autocomplete current-password) and signup (autocomplete new-password), each with unique field ids so 1Password does not cache the field as a login field - Add passwordrules, minlength=8, and maxlength=128 to the signup password input so 1Password can generate a password matching the server rules (min 8 chars) - Remove the dynamic autocomplete computed and the v-if display-name field; each form now has a static, complete field set - Add .fields form styling (flex column, gap) now that the forms sit inside the card container --- src/components/AuthModal.vue | 75 ++++++++++++++++++++++++------------ 1 file changed, 51 insertions(+), 24 deletions(-) diff --git a/src/components/AuthModal.vue b/src/components/AuthModal.vue index bf8dd0e..cd72257 100644 --- a/src/components/AuthModal.vue +++ b/src/components/AuthModal.vue @@ -1,5 +1,5 @@