Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
birger
users
Commits
2ec82f66
Commit
2ec82f66
authored
Oct 03, 2018
by
o@immerda.ch
Browse files
some more ux improvements regarding password strength
parent
2fac131c
Changes
4
Hide whitespace changes
Inline
Side-by-side
app/views/password/show.html.erb
View file @
2ec82f66
<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
%>
...
...
app/views/signup/create.html.erb
View file @
2ec82f66
...
...
@@ -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
/>
...
...
config/locales/de.yml
View file @
2ec82f66
...
...
@@ -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"
...
...
config/locales/en.yml
View file @
2ec82f66
...
...
@@ -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"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment