Commit 2ec82f66 authored by o@immerda.ch's avatar o@immerda.ch
Browse files

some more ux improvements regarding password strength

parent 2fac131c
<h4><a id="pw-help-toggle" href="#" ><%= t(:password_help) %></a></h4>
<div id="pw-help" style="display:none;">
<%= render "password_help_#{I18n.locale}" rescue render 'help_en' %>
<hr />
</div>
<h3><%= @page_title = t(:change_password) %></h3>
<%= form_tag(password_path, method: "post") do %>
<table>
......@@ -25,6 +19,13 @@
<%= password_field_tag(:confirm) %>
</td><td><div id='confirm_ok'></td><td></td></tr>
</table>
<h4><a id="pw-help-toggle" href="#" ><%= t(:password_help) %></a></h4>
<div id="pw-help" style="display:none;">
<%= render "password_help_#{I18n.locale}" rescue render 'help_en' %>
</div>
<br />
<p>
<%= submit_tag(t :change_pw) %>
<%= link_to t(:back), root_path %>
......
......@@ -28,6 +28,15 @@
<div id='confirm_ok'>
</td><td>
</td></tr>
</table>
<h4><a id="pw-help-toggle" href="#" ><%= t(:password_help) %></a></h4>
<div id="pw-help" style="display:none;">
<%= render "password_help_#{I18n.locale}" rescue render 'password_help_en' %>
</div>
<table>
<tr><td>
<tr><td colspan="4" style="max-width: 500px">
<br />
<%= t :recovery_email_short_help %>
......@@ -42,12 +51,6 @@
</table>
<br />
<h4><a id="pw-help-toggle" href="#" ><%= t(:password_help) %></a></h4>
<div id="pw-help" style="display:none;">
<%= render "password_help_#{I18n.locale}" rescue render 'password_help_en' %>
<hr />
</div>
<p>
<div id="keep_recovery_token_question">
<br />
......
......@@ -49,7 +49,7 @@ de:
pwstrength: "Passwortstärke"
password_change_mismatch: "Die eingegebenen Passwörter stimmen nicht überein"
password_too_short: "Das gewählte Passwort ist zu kurz (mind. 10 Zeichen)"
password_policy_fail: "Das gewählte Passwort ist zu einfach zu erraten"
password_policy_fail: "Das gewählte Passwort ist zu einfach zu erraten. Vermeide gängige Wörter und Tastenabfolgen."
password_change_failed: "Passwortänderung fehlgeschlagen"
unlock: "entsperren"
update: "aktualisieren"
......
......@@ -48,7 +48,7 @@ en:
password_changed: "Password changed"
pwstrength: "Password strength"
password_change_mismatch: "The passwords do not match"
password_policy_fail: "The password is too easy to guess"
password_policy_fail: "The password is too easy to guess. Avoid common words and key patterns."
password_too_short: "The password is too short (min 10 characters)"
password_change_failed: "Password change failed"
unlock: "unlock"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment