Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
m4lab_tv1
User Account
Commits
7217413e
Commit
7217413e
authored
Feb 28, 2020
by
Rosanny Sihombing
Browse files
add DE
parent
0468b335
Changes
2
Hide whitespace changes
Inline
Side-by-side
public/js/registration.js
View file @
7217413e
...
...
@@ -22,7 +22,8 @@ $('#inputPassword').on('keyup', function () {
isPasswordValid
=
checkPasswordReq
(
$
(
'
#inputPassword
'
).
val
())
$
(
'
#passwordWarning
'
).
empty
();
if
(
!
isPasswordValid
)
{
$
(
'
#passwordWarning
'
).
html
(
'
Must be at least 8 characters
'
)
//$('#passwordWarning').html('Must be at least 8 characters')
$
(
'
#passwordWarning
'
).
html
(
'
Das Passwort muss mindestens 8 Zeichen haben
'
)
}
switchSubmitButton
()
});
...
...
public/js/security.js
View file @
7217413e
...
...
@@ -6,15 +6,18 @@ $('#inputNewPwd, #inputConfirm').on('keyup', function () {
isBest
=
checkPasswordReq
(
$
(
'
#inputNewPwd
'
).
val
())
$
(
'
#recommendation
'
).
empty
();
if
(
!
isBest
)
{
$
(
'
#recommendation
'
).
html
(
'
Must be at least 8 characters
'
).
css
(
'
color
'
,
'
red
'
);
//$('#recommendation').html('Must be at least 8 characters').css('color', 'red');
$
(
'
#recommendation
'
).
html
(
'
Das Passwort muss mindestens 8 Zeichen haben
'
).
css
(
'
color
'
,
'
red
'
);
}
// match or not?
if
(
$
(
'
#inputNewPwd
'
).
val
()
==
$
(
'
#inputConfirm
'
).
val
())
{
$
(
'
#message
'
).
html
(
'
Matching
'
).
css
(
'
color
'
,
'
green
'
);
//$('#message').html('Matching').css('color', 'green');
$
(
'
#message
'
).
html
(
'
Übereinstimmend
'
).
css
(
'
color
'
,
'
green
'
);
isMatch
=
true
;
}
else
{
$
(
'
#message
'
).
html
(
'
Not Matching
'
).
css
(
'
color
'
,
'
red
'
);
//$('#message').html('Not Matching').css('color', 'red');
$
(
'
#message
'
).
html
(
'
Nicht übereinstimmend
'
).
css
(
'
color
'
,
'
red
'
);
isMatch
=
false
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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