diff --git a/public/js/registration.js b/public/js/registration.js index 1033ce3f3ced7a3959a1af6da82efebd3ab1b777..3e6184f9f79ee61c290e2bfb44a7b5046c276e46 100644 --- a/public/js/registration.js +++ b/public/js/registration.js @@ -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() }); diff --git a/public/js/security.js b/public/js/security.js index 0f4a8f09f61f75a51046454a85e4d31250af12af..535a95a208292eda555273f548af3e71012bd107 100644 --- a/public/js/security.js +++ b/public/js/security.js @@ -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; }