From 6bc70bebc00a2b5de58b14d0e91b34bacb93e9f0 Mon Sep 17 00:00:00 2001 From: Esko Luontola Date: Sun, 12 May 2024 14:42:07 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20Tell=201Password=20to=20ignore?= =?UTF-8?q?=20the=20user=20ID=20field?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/territory_bro/ui/settings_page.clj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/territory_bro/ui/settings_page.clj b/src/territory_bro/ui/settings_page.clj index 35d665ef..8ef7f57d 100644 --- a/src/territory_bro/ui/settings_page.clj +++ b/src/territory_bro/ui/settings_page.clj @@ -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)