From: John Firebaugh Date: Fri, 16 Aug 2013 00:14:58 +0000 (-0700) Subject: Turn off autocomplete on user settings form X-Git-Tag: live~4798 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/18c00a5459b20af4d7363a24f708af8408f9bcf9 Turn off autocomplete on user settings form This prevents annoying/useless autocompletion of the "New Email Address" and "Password" fields. --- diff --git a/app/views/user/account.html.erb b/app/views/user/account.html.erb index a0979d5ae..0a2f056c2 100644 --- a/app/views/user/account.html.erb +++ b/app/views/user/account.html.erb @@ -7,7 +7,7 @@ <% end %> <%= error_messages_for 'user' %> -<%= form_for :user, :html => { :multipart => true, :id => 'accountForm',:class => 'standard-form' } do |f| %> +<%= form_for :user, :html => { :multipart => true, :id => 'accountForm', :class => 'standard-form', :autocomplete => :off } do |f| %>
@@ -24,7 +24,7 @@
- <%= f.email_field :new_email %> + <%= f.email_field :new_email, :autocomplete => :off %> <%= t 'user.account.email never displayed publicly' %>