Permalink
Browse files

Set autocomplete to off by default on password field.

  • Loading branch information...
josevalim committed Feb 15, 2012
1 parent 43d0715 commit 79aadb4bc91e1292123b3fb4f5a248aa18fab116
@@ -7,7 +7,7 @@
<%= f.email_field :email %></div>
<div><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
- <%= f.password_field :password %></div>
+ <%= f.password_field :password, :autocomplete => "off" %></div>
<div><%= f.label :password_confirmation %><br />
<%= f.password_field :password_confirmation %></div>
@@ -5,7 +5,7 @@
<div class="inputs">
<%= f.input :email, :required => true, :autofocus => true %>
- <%= f.input :password, :hint => "leave it blank if you don't want to change it", :required => false %>
+ <%= f.input :password, :autocomplete => "off", :hint => "leave it blank if you don't want to change it", :required => false %>
<%= f.input :password_confirmation, :required => false %>
<%= f.input :current_password, :hint => "we need your current password to confirm your changes", :required => true %>
</div>

0 comments on commit 79aadb4

Please sign in to comment.