From e6db73f8d320bfd0b9c679ab1648e62d35cdf0bf Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 28 Jan 2021 11:33:01 +0000 Subject: [PATCH 1/1] Avoid password manager autocompletion on user settings page --- app/views/users/account.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/users/account.html.erb b/app/views/users/account.html.erb index 83ba127ca..43171d834 100644 --- a/app/views/users/account.html.erb +++ b/app/views/users/account.html.erb @@ -14,9 +14,9 @@ <%= f.text_field :display_name %> <%= f.email_field :email, :disabled => true, :label => t(".current email address") %> - <%= f.email_field :new_email, :autocomplete => :off %> - <%= f.password_field :pass_crypt, :value => "", :autocomplete => :off %> - <%= f.password_field :pass_crypt_confirmation, :value => "", :autocomplete => :off %> + <%= f.email_field :new_email, :autocomplete => "email" %> + <%= f.password_field :pass_crypt, :value => "", :autocomplete => "new-password" %> + <%= f.password_field :pass_crypt_confirmation, :value => "", :autocomplete => "new-password" %>
-- 2.39.5