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
18d27946
Commit
18d27946
authored
Oct 03, 2018
by
o@immerda.ch
Browse files
ux improvements
parent
836a8ced
Changes
8
Hide whitespace changes
Inline
Side-by-side
app/assets/javascripts/password.coffee
View file @
18d27946
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
/
/=
require
zxcvbn
/
/=
require
pwstrength
//
=
require
pwhelp
app/assets/javascripts/pwstrength.js
View file @
18d27946
...
...
@@ -32,13 +32,13 @@ function confirmcheck() {
function
loadPwstrength
()
{
if
(
document
.
getElementById
(
'
confirm
'
))
{
document
.
getElementById
(
'
new
'
).
addEventListener
(
"
keyup
"
,
pwstrength
)
document
.
getElementById
(
'
new
'
).
addEventListener
(
"
change
"
,
pwstrength
)
//
document.getElementById('new').addEventListener("keyup", pwstrength)
//
document.getElementById('new').addEventListener("change", pwstrength)
document
.
getElementById
(
'
new
'
).
addEventListener
(
"
keyup
"
,
confirmcheck
)
document
.
getElementById
(
'
new
'
).
addEventListener
(
"
change
"
,
confirmcheck
)
document
.
getElementById
(
'
confirm
'
).
addEventListener
(
"
keyup
"
,
confirmcheck
)
document
.
getElementById
(
'
confirm
'
).
addEventListener
(
"
change
"
,
confirmcheck
)
pwstrength
();
//
pwstrength();
}
}
window
.
addEventListener
(
"
load
"
,
loadPwstrength
)
app/assets/javascripts/signup.coffee
View file @
18d27946
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/
/
/=
require
zxcvbn
/
/=
require
pwstrength
//
=
require
signup_helpers
//
=
require
pwhelp
...
...
app/controllers/application_controller.rb
View file @
18d27946
...
...
@@ -86,7 +86,7 @@ class ApplicationController < ActionController::Base
end
def
password_policy?
(
pw
)
if
pw
.
length
<
9
if
pw
.
length
<
10
flash
[
:notice
]
=
:password_too_short
return
false
end
...
...
app/views/password/show.html.erb
View file @
18d27946
...
...
@@ -18,7 +18,7 @@
</td><td>
<div
id=
"new_ok"
>
</div>
</td><td>
<div
id=
"pwscore"
style=
"text-align:center;width:30px;margin:0 10px 10px;padding:1px;"
>
</div>
<!--
<div id="pwscore" style="text-align:center;width:30px;margin:0 10px 10px;padding:1px;"> </div>
-->
</td></tr><tr><td>
<%=
label_tag
(
:confirm
,
(
t
:confirm_pw
))
%>
</td><td>
...
...
app/views/signup/create.html.erb
View file @
18d27946
...
...
@@ -18,7 +18,7 @@
</td><td>
<div
id=
"new_ok"
>
</div>
</td><td>
<div
id=
"pwscore"
style=
"text-align:center;width:30px;margin:0 10px 10px;padding:1px;"
>
</div>
<!--
<div id="pwscore" style="text-align:center;width:30px;margin:0 10px 10px;padding:1px;"> </div>
-->
</td></tr>
<tr><td>
<%=
label_tag
(
:confirm
,
(
t
:confirm_pw
))
%>
...
...
@@ -28,7 +28,10 @@
<div
id=
'confirm_ok'
>
</td><td>
</td></tr>
<tr><td
colspan=
"4"
>
<%=
t
:recovery_email_short_help
%>
</td></tr>
<tr><td
colspan=
"4"
style=
"max-width: 500px"
>
<br
/>
<%=
t
:recovery_email_short_help
%>
</td></tr>
<tr><td>
<%=
label_tag
(
:recovery_email
,
(
t
:recovery_email
))
%>
</td><td>
...
...
config/locales/de.yml
View file @
18d27946
...
...
@@ -22,7 +22,7 @@ de:
recovery_token_hint
:
"
Wir
empfehlen
dir
einen
Wiederherstellungscode
zu
generieren"
backup_recovery_token_email
:
"
Sende
mir
den
Wiederherstellungscode
an
meine
Backup
Email
Adresse."
backup_recovery_token_email
:
"
Sende
mir
den
Wiederherstellungscode
an
meine
Backup
Email
Adresse
(nur
für
immerda
Backup
Emails)
."
backup_recovery_token_keep
:
"
Ich
kann
den
Wiederherstellungscode
jetzt
gerade
nicht
aufbewahren
und
werde
ihn
später
generieren."
backup_recovery_token_delete
:
"
Ich
kann
den
Wiederherstellungscode
jetzt
sicher
aufbewahren."
...
...
@@ -72,13 +72,13 @@ de:
invalid_alias_domain
:
"
Ungültige
Emailadresse"
main_title
:
"
Immerda
Kontoeinstellungen"
new_account_intro1
:
"
Dein
Konto
ist
erstellt!
Hier
ein
paar
infos"
new_account_intro_token_display
:
"
Kopi
ere
den
Code
jetzt
und
bewahre
ihn
sicher
auf."
new_account_intro_token_display
:
"
Speich
ere
den
Code
jetzt
ab
und
bewahre
ihn
sicher
auf."
new_account_intro_token_generate
:
"
Einen
Wiederherstellungscode
kannst
du
in
deinen
Kontoeinstellungen
generieren."
new_account_intro2
:
"
Um
verschlüsselte
Mails
zu
versenden,
empfehlen
wir
dir
im
Webmail
einen
GPG
Schlüssel
zu
erstellen.
Die
Anleitung
findest
du
in
unserem
Willkommens
Email,
das
du
nun
erhalten
hast."
recovery_email
:
"
Backup
Email"
recovery_email_help
:
"
Du
kannst
hier
bestimmen,
von
welcher
Email
Adresse
aus
du
ein
Passwort
zurücksetzen
kannst.
Wenn
du
dies
bereits
getan
hast,
kannst
du
hier
deine
Entscheidung
überschreiben."
recovery_email_help_crypt
:
"
Du
brauchst
zusätzlich
einen
Wiederherstellungscode,
damit
deine
Mails
beim
Zurücksetzen
nicht
verloren
gehen."
recovery_email_short_help
:
"
Von
dieser
Adresse
aus
kannst
du
uns
schreiben,
um
dein
Passwort
zurücksetzen."
recovery_email_short_help
:
"
Als
Backup
Email
kannst
du
eine
zweite
Email
Adresse
von
dir
hinterlegen.
Von
dieser
Adresse
aus
kannst
du
uns
schreiben,
um
dein
Passwort
zurücksetzen."
invite_token
:
"
Einladungscode"
num_tokens
:
'
Anzahl
Einladungscodes'
new_account
:
"
Neues
Konto"
...
...
config/locales/en.yml
View file @
18d27946
...
...
@@ -22,7 +22,7 @@ en:
recovery_token_hint
:
"
We
recommend
you
generate
a
recovery
token"
backup_recovery_token_email
:
"
Send
me
my
recovery
token
to
my
recovery
email
address."
backup_recovery_token_email
:
"
Send
me
my
recovery
token
to
my
recovery
email
address
(only
for
immerda
recovery
emails)
."
backup_recovery_token_delete
:
"
I
can
safely
store
my
token."
backup_recovery_token_keep
:
"
I
can't
safely
store
the
token
right
now.
I
will
generate
one
later."
...
...
@@ -78,7 +78,7 @@ en:
recovery_email
:
"
Recovery
Email"
recovery_email_help
:
"
You
can
set
a
recovery
email
here.
From
this
address
you
are
able
to
ask
us
to
reset
your
password.
If
you
already
did
this,
then
submitting
it
again,
will
override
your
former
choice."
recovery_email_help_crypt
:
"
Remember,
if
you
forget
the
password
you
additionally
need
a
recovery
token.
Otherwise
existing
messages
will
get
lost."
recovery_email_short_help
:
"
You
can
write
us
from
you
recovery
email
addres
s
to
request
a
new
password."
recovery_email_short_help
:
"
You
can
provide
us
another
email
address
of
yours
as
recovery
email.
From
that
address
you
can
write
u
s
to
request
a
new
password."
invite_token
:
"
Invite
Code"
num_tokens
:
'
Number
of
tokens'
new_account
:
"
New
Account"
...
...
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