|
|
|
@ -63,10 +63,12 @@ See docs/COPYRIGHT.rdoc for more details. |
|
|
|
|
<legend class="form--fieldset-legend"><%= I18n.t(:passwords, scope: [:settings]) %></legend> |
|
|
|
|
<% if !OpenProject::Configuration.disable_password_login? %> |
|
|
|
|
<div class="form--field -wide-label"><%= setting_text_field :password_min_length, size: 6, container_class: '-xslim' %></div> |
|
|
|
|
<div class="form--field -wide-label"><%= setting_multiselect :password_active_rules, |
|
|
|
|
OpenProject::Passwords::Evaluator.known_rules.map do |r| |
|
|
|
|
[t("label_password_rule_#{r}"), r] |
|
|
|
|
end %></div> |
|
|
|
|
<div class="form--field -wide-label"> |
|
|
|
|
<% rules = OpenProject::Passwords::Evaluator.known_rules.map do |rule| |
|
|
|
|
[t("label_password_rule_#{rule}"), rule] |
|
|
|
|
end %> |
|
|
|
|
<%= setting_multiselect :password_active_rules, rules %> |
|
|
|
|
</div> |
|
|
|
|
<div class="form--field -wide-label"><%= setting_text_field :password_min_adhered_rules, size: 6, container_class: '-xslim' %></div> |
|
|
|
|
<div class="form--field -wide-label"><%= setting_text_field :password_days_valid, size: 6, container_class: '-xslim' %> |
|
|
|
|
<span class="form--field-instructions"> |
|
|
|
|