]> git.openstreetmap.org Git - rails.git/commitdiff
Disable autocompletion for the password fields on the settings page.
authorTom Hughes <tom@compton.nu>
Sat, 20 Mar 2010 00:01:57 +0000 (00:01 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 20 Mar 2010 00:01:57 +0000 (00:01 +0000)
app/views/user/account.html.erb

index 13e8a75643f623b28ea17c8000123324ede2a4bd..85e9aebefb300142b3465176b81ee0f3b33c88ad 100644 (file)
 
   <tr>
     <td class="fieldName" style="padding-bottom:0px;"><%= t 'user.new.password' %></td>
 
   <tr>
     <td class="fieldName" style="padding-bottom:0px;"><%= t 'user.new.password' %></td>
-    <td style="padding-bottom:0px;"><%= f.password_field :pass_crypt, {:value => '', :size => 30, :maxlength => 255} %></td>
+    <td style="padding-bottom:0px;"><%= f.password_field :pass_crypt, {:value => '', :size => 30, :maxlength => 255, :autocomplete => :off} %></td>
   </tr>
 
   <tr>
     <td class="fieldName"><%= t 'user.new.confirm password' %></td>
   </tr>
 
   <tr>
     <td class="fieldName"><%= t 'user.new.confirm password' %></td>
-    <td><%= f.password_field :pass_crypt_confirmation, {:value => '', :size => 30, :maxlength => 255} %></td>
+    <td><%= f.password_field :pass_crypt_confirmation, {:value => '', :size => 30, :maxlength => 255, :autocomplete => :off} %></td>
   </tr>
 
   <tr>
   </tr>
 
   <tr>