Skip to content

Commit

Permalink
Turn off autocomplete on user settings form
Browse files Browse the repository at this point in the history
This prevents annoying/useless autocompletion of the
"New Email Address" and "Password" fields.
  • Loading branch information
jfirebaugh authored and tomhughes committed Aug 16, 2013
1 parent 031ad4f commit 18c00a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/user/account.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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| %>
<fieldset>
<div class="form-row">
<label class="standard-label"><%= t 'user.new.display name' %></label>
Expand All @@ -24,7 +24,7 @@

<div class="form-row">
<label class="standard-label"><%= t 'user.account.new email address' %></label>
<%= f.email_field :new_email %>
<%= f.email_field :new_email, :autocomplete => :off %>
<span class="form-help deemphasize"><%= t 'user.account.email never displayed publicly' %></span>
</div>
</fieldset>
Expand Down

0 comments on commit 18c00a5

Please sign in to comment.