From: Tom Hughes Date: Thu, 28 Jan 2021 11:33:01 +0000 (+0000) Subject: Avoid password manager autocompletion on user settings page X-Git-Tag: live~2624 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/e6db73f8d320bfd0b9c679ab1648e62d35cdf0bf Avoid password manager autocompletion on user settings page --- 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" %>