From a1480d660289e6b0d3a966fea9eb7a0f7acb738c Mon Sep 17 00:00:00 2001 From: "severin.plewe@googlemail.com" Date: Wed, 22 Jan 2025 11:26:08 +0100 Subject: [PATCH] Changed zxcvbn to zxcvbn and modified button for password guidelines --- client/package.json | 6 ++-- .../src/components/Login/PasswordStrength.vue | 34 +++++++++++++++---- client/src/components/Login/RegisterForm.vue | 10 +++--- client/yarn.lock | 24 +++++++++---- 4 files changed, 54 insertions(+), 20 deletions(-) diff --git a/client/package.json b/client/package.json index 75bd3f18aabd..2e9129365424 100644 --- a/client/package.json +++ b/client/package.json @@ -45,6 +45,9 @@ "@types/jest": "^29.5.12", "@vueuse/core": "^10.5.0", "@vueuse/math": "^10.9.0", + "@zxcvbn-ts/core": "^3.0.4", + "@zxcvbn-ts/language-common": "^3.0.4", + "@zxcvbn-ts/language-en": "^3.0.2", "assert": "^2.1.0", "axios": "^1.6.2", "babel-runtime": "^6.26.0", @@ -117,8 +120,7 @@ "vue2-teleport": "^1.0.1", "vuedraggable": "^2.24.3", "winbox": "^0.2.82", - "xml-beautifier": "^0.5.0", - "zxcvbn": "^4.4.2" + "xml-beautifier": "^0.5.0" }, "scripts": { "develop": "NODE_ENV=development gulp && webpack-dev-server", diff --git a/client/src/components/Login/PasswordStrength.vue b/client/src/components/Login/PasswordStrength.vue index 1d3de2799881..971c2dace7dd 100644 --- a/client/src/components/Login/PasswordStrength.vue +++ b/client/src/components/Login/PasswordStrength.vue @@ -1,6 +1,6 @@