Merge pull request #8183 from opf/fix/31976-Strings-not-localized-in-password-settings

[31976] Strings not localized (password settings)
pull/8185/head
Oliver Günther 5 years ago committed by GitHub
commit 33f3421695
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      app/views/authentication/authentication_settings.html.erb

@ -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">

Loading…
Cancel
Save