Skip to content

fix(admin): stop browser autofilling credential Label/API key as login (CLEAN-46) - #42

Merged
maksymhryzodub-prog merged 1 commit into
mainfrom
fix/CLEAN-46-credential-autofill
Aug 24, 2026
Merged

fix(admin): stop browser autofilling credential Label/API key as login (CLEAN-46)#42
maksymhryzodub-prog merged 1 commit into
mainfrom
fix/CLEAN-46-credential-autofill

Conversation

@maksymhryzodub-prog

@maksymhryzodub-prog maksymhryzodub-prog commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Chrome treated the New/Edit credential form as a login form: saved email was autofilled into Label (optional) and the saved password into API key (screenshot in CLEAN-46).
  • Root cause: the API key input is type="password" with autocomplete="off", which Chrome ignores on password fields — it pairs the field with the nearest preceding text input (Label) as username/password.
  • Fix: autocomplete="new-password" on the API key input (respected by Chrome), autocomplete="off" + non-suggestive name attrs on the Label input and the form. Shared item/Form.vue covers both create and edit pages.

Test plan

  • Open New credential in Chrome with saved passwords for the admin domain — Label and API key must stay empty
  • Edit credential page shows the same behavior
  • Form still submits and validates as before

🤖 Generated with Claude Code

…n (CLEAN-46)

Chrome ignores autocomplete="off" on password inputs and pairs the API
key field with the nearest text input (Label) as a username/password
form, injecting saved credentials. new-password on the key input plus
off + non-suggestive names on the label/form break the heuristic.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@maksymhryzodub-prog
maksymhryzodub-prog merged commit 4602617 into main Aug 24, 2026
1 check passed
@maksymhryzodub-prog
maksymhryzodub-prog deleted the fix/CLEAN-46-credential-autofill branch August 24, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant