From 2af371526c89d9c5b3d1d435188d2b2473eafa4c Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Fri, 13 Aug 2021 03:00:52 +0000 Subject: Merged r21167 from trunk to 4.1-stable (#35731). git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@21169 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/users/_form.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app') diff --git a/app/views/users/_form.html.erb b/app/views/users/_form.html.erb index bb20a4f9d..d423f61fc 100644 --- a/app/views/users/_form.html.erb +++ b/app/views/users/_form.html.erb @@ -32,13 +32,13 @@ <% end %>

- <%= f.password_field :password, :required => true, :size => 25 %> + <%= f.password_field :password, :required => @user.new_record?, :size => 25 %> <%= l(:text_caracters_minimum, :count => Setting.password_min_length) %> <% if Setting.password_required_char_classes.any? %> <%= l(:text_characters_must_contain, :character_classes => Setting.password_required_char_classes.collect{|c| l("label_password_char_class_#{c}")}.join(", ")) %> <% end %>

-

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

+

<%= f.password_field :password_confirmation, :required => @user.new_record?, :size => 25 %>

<%= f.check_box :generate_password %>

<%= f.check_box :must_change_passwd %>

-- cgit v1.2.3