summaryrefslogtreecommitdiffstats
path: root/app/views/account/password_recovery.html.erb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-08-29 01:35:09 +0000
committerGo MAEDA <maeda@farend.jp>2019-08-29 01:35:09 +0000
commit35e6a532f56d1a3e54476d2adb36375169e9bef9 (patch)
tree6d225402666ad8aa85b2fe6f9d40c427669368fc /app/views/account/password_recovery.html.erb
parent0d9f7ee64a43ce75dd87c8d035a9d335b1077c16 (diff)
downloadredmine-35e6a532f56d1a3e54476d2adb36375169e9bef9.tar.gz
redmine-35e6a532f56d1a3e54476d2adb36375169e9bef9.zip
Force passwords to contain specified character classes (#4221).
Patch by Takenori TAKAKI. git-svn-id: http://svn.redmine.org/redmine/trunk@18411 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/account/password_recovery.html.erb')
-rw-r--r--app/views/account/password_recovery.html.erb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/account/password_recovery.html.erb b/app/views/account/password_recovery.html.erb
index 24da8223b..0c275b476 100644
--- a/app/views/account/password_recovery.html.erb
+++ b/app/views/account/password_recovery.html.erb
@@ -9,6 +9,9 @@
<label for="new_password"><%=l(:field_new_password)%> <span class="required">*</span></label>
<%= password_field_tag 'new_password', nil, :size => 25 %>
<em class="info"><%= l(:text_caracters_minimum, :count => Setting.password_min_length) %></em>
+ <% if Setting.password_required_char_classes.any? %>
+ <em class="info"><%= l(:text_characters_must_contain, :character_classes => Setting.password_required_char_classes.collect{|c| l("label_password_char_class_#{c}")}.join(", ")) %></em>
+ <% end %>
</p>
<p>