From 7217413e80193936de9d0edcaf6d3af2255714b4 Mon Sep 17 00:00:00 2001
From: Rosanny <rosanny.sihombing@hft-stuttgart.de>
Date: Fri, 28 Feb 2020 20:56:41 +0100
Subject: [PATCH] add DE

---
 public/js/registration.js | 3 ++-
 public/js/security.js     | 9 ++++++---
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/public/js/registration.js b/public/js/registration.js
index 1033ce3..3e6184f 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 0f4a8f0..535a95a 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;
     }
     
-- 
GitLab