mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Set autocomplete to off by default on password field.
This commit is contained in:
parent
43d0715238
commit
79aadb4bc9
2 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@
|
||||||
<%= f.email_field :email %></div>
|
<%= f.email_field :email %></div>
|
||||||
|
|
||||||
<div><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
|
<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 />
|
<div><%= f.label :password_confirmation %><br />
|
||||||
<%= f.password_field :password_confirmation %></div>
|
<%= f.password_field :password_confirmation %></div>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
<div class="inputs">
|
<div class="inputs">
|
||||||
<%= f.input :email, :required => true, :autofocus => true %>
|
<%= 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 :password_confirmation, :required => false %>
|
||||||
<%= f.input :current_password, :hint => "we need your current password to confirm your changes", :required => true %>
|
<%= f.input :current_password, :hint => "we need your current password to confirm your changes", :required => true %>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue