diff --git a/app/views/users/_form.rhtml b/app/views/users/_form.rhtml index 43540e67c..56b157986 100644 --- a/app/views/users/_form.rhtml +++ b/app/views/users/_form.rhtml @@ -20,14 +20,16 @@
<%= f.select :auth_source_id, [[l(:label_internal), ""]] + @auth_sources.collect { |a| [a.name, a.id] } %>
+<%= 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 %> + +