Skip to content

Commit

Permalink
🚸 Tell 1Password to ignore the user ID field
Browse files Browse the repository at this point in the history
Why:
- 1Password offered to fill the user ID field, presumably due to its
  name. But since that field is for adding other users instead of
  logging in, password managers should ignore it.
  • Loading branch information
luontola committed May 12, 2024
1 parent 9069d4d commit 6bc70be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/territory_bro/ui/settings_page.clj
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@
[:input#user-id {:name "userId"
:type "text"
:autocomplete "off"
:data-1p-ignore true ; don't offer to fill with 1Password https://developer.1password.com/docs/web/compatible-website-design/
:required true
:pattern "\\s*[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\\s*"
:value (:form/user-id model)
Expand Down

0 comments on commit 6bc70be

Please sign in to comment.