Commit 7217413e authored by Rosanny Sihombing's avatar Rosanny Sihombing
Browse files

add DE

parent 0468b335
Showing with 8 additions and 4 deletions
+8 -4
...@@ -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()
}); });
......
...@@ -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;
} }
......
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