Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Administrator
m4lab_landing_page
Commits
7217413e
Commit
7217413e
authored
5 years ago
by
Rosanny Sihombing
Browse files
Options
Download
Email Patches
Plain Diff
add DE
parent
0468b335
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
public/js/registration.js
+2
-1
public/js/registration.js
public/js/security.js
+6
-3
public/js/security.js
with
8 additions
and
4 deletions
+8
-4
public/js/registration.js
+
2
-
1
View file @
7217413e
...
@@ -22,7 +22,8 @@ $('#inputPassword').on('keyup', function () {
...
@@ -22,7 +22,8 @@ $('#inputPassword').on('keyup', function () {
isPasswordValid
=
checkPasswordReq
(
$
(
'
#inputPassword
'
).
val
())
isPasswordValid
=
checkPasswordReq
(
$
(
'
#inputPassword
'
).
val
())
$
(
'
#passwordWarning
'
).
empty
();
$
(
'
#passwordWarning
'
).
empty
();
if
(
!
isPasswordValid
)
{
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
()
switchSubmitButton
()
});
});
...
...
This diff is collapsed.
Click to expand it.
public/js/security.js
+
6
-
3
View file @
7217413e
...
@@ -6,15 +6,18 @@ $('#inputNewPwd, #inputConfirm').on('keyup', function () {
...
@@ -6,15 +6,18 @@ $('#inputNewPwd, #inputConfirm').on('keyup', function () {
isBest
=
checkPasswordReq
(
$
(
'
#inputNewPwd
'
).
val
())
isBest
=
checkPasswordReq
(
$
(
'
#inputNewPwd
'
).
val
())
$
(
'
#recommendation
'
).
empty
();
$
(
'
#recommendation
'
).
empty
();
if
(
!
isBest
)
{
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?
// match or not?
if
(
$
(
'
#inputNewPwd
'
).
val
()
==
$
(
'
#inputConfirm
'
).
val
())
{
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
;
isMatch
=
true
;
}
else
{
}
else
{
$
(
'
#message
'
).
html
(
'
Not Matching
'
).
css
(
'
color
'
,
'
red
'
);
//$('#message').html('Not Matching').css('color', 'red');
$
(
'
#message
'
).
html
(
'
Nicht übereinstimmend
'
).
css
(
'
color
'
,
'
red
'
);
isMatch
=
false
;
isMatch
=
false
;
}
}
...
...
This diff is collapsed.
Click to expand it.
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