ref: refs/heads/master
commit eae2927d27ef6de4f64c4019d5452423f0aad9e0
Author: Ladislav Slezak
Date: Wed Aug 5 15:52:00 2009 +0200
Hide entered password - use password_field instead of text_field
---
plugins/users/app/views/users/edit.html.erb | 2 +-
plugins/users/app/views/users/new.html.erb | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/users/app/views/users/edit.html.erb b/plugins/users/app/views/users/edit.html.erb
index cc36b1a..f5c402d 100644
--- a/plugins/users/app/views/users/edit.html.erb
+++ b/plugins/users/app/views/users/edit.html.erb
@@ -41,7 +41,7 @@
</tr>
<tr class="bg">
<td class="first"><strong><%=_("Password")%></strong></td>
- <td class="last"><%= f.text_field :user_password, :disabled => disabled %></td>
+ <td class="last"><%= f.password_field :user_password, :disabled => disabled %></td>
</tr>
</table>
<p><%= f.submit _("Update"), :disabled => disabled %><%= link_to _('Back'), users_path, :onclick=>"Element.show('progress')", :class => "button"%></p>
diff --git a/plugins/users/app/views/users/new.html.erb b/plugins/users/app/views/users/new.html.erb
index 3844eb1..faf9713 100644
--- a/plugins/users/app/views/users/new.html.erb
+++ b/plugins/users/app/views/users/new.html.erb
@@ -39,7 +39,7 @@
</tr>
<tr>
<td class="first"><strong><%=_("Password")%></strong></td>
- <td class="last"><%= f.text_field :user_password %></td>
+ <td class="last"><%= f.password_field :user_password %></td>
</tr>
</table>
<p><%= f.submit _("Create"), :onclick=>"Element.show('progress')" %><%= link_to _('Back'), users_path, :onclick=>"Element.show('progress')", :class => "button" %></p>
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org