From 87e055cf4702d51e0b0a899e5df666e9deda2277 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sch=C3=A4fer?= Date: Thu, 5 May 2011 21:25:34 +0200 Subject: [PATCH] disable browser autocomplete on password fields on user edit view. #360 --- app/views/users/_form.rhtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/users/_form.rhtml b/app/views/users/_form.rhtml index 4e788f6c..0dc19542 100644 --- a/app/views/users/_form.rhtml +++ b/app/views/users/_form.rhtml @@ -25,9 +25,9 @@

<%= f.select :auth_source_id, ([[l(:label_internal), ""]] + @auth_sources.collect { |a| [a.name, a.id] }), {}, :onchange => "if (this.value=='') {Element.show('password_fields');} else {Element.hide('password_fields');}" %>

<% end %>
-

<%= f.password_field :password, :required => true, :size => 25 %>
+

<%= f.password_field :password, :required => true, :size => 25, :autocomplete => :off %>
<%= l(:text_caracters_minimum, :count => Setting.password_min_length) %>

-

<%= f.password_field :password_confirmation, :required => true, :size => 25 %>

+

<%= f.password_field :password_confirmation, :required => true, :size => 25, :autocomplete => :off %>