From 428aea416172e3c84875e1b8869a5714b9fb4763 Mon Sep 17 00:00:00 2001 From: "severin.plewe@googlemail.com" Date: Thu, 19 Dec 2024 18:20:42 +0100 Subject: [PATCH 1/2] Added Password Strength Component in a seperate file --- .../src/components/Login/PasswordStength.vue | 126 + client/src/components/Login/RegisterForm.vue | 12 +- client/types/zxcvbn.d.ts | 18 + .../static/fits_graph_viewer.js | 1 + package-lock.json | 5972 +++++++++++++++++ package.json | 12 +- 6 files changed, 6138 insertions(+), 3 deletions(-) create mode 100644 client/src/components/Login/PasswordStength.vue create mode 100644 client/types/zxcvbn.d.ts create mode 100644 config/plugins/visualizations/fits_graph_viewer/static/fits_graph_viewer.js create mode 100644 package-lock.json diff --git a/client/src/components/Login/PasswordStength.vue b/client/src/components/Login/PasswordStength.vue new file mode 100644 index 000000000000..28c6993a8ebc --- /dev/null +++ b/client/src/components/Login/PasswordStength.vue @@ -0,0 +1,126 @@ + + + + + diff --git a/client/src/components/Login/RegisterForm.vue b/client/src/components/Login/RegisterForm.vue index d2237174c182..21c4273a8a1c 100644 --- a/client/src/components/Login/RegisterForm.vue +++ b/client/src/components/Login/RegisterForm.vue @@ -13,6 +13,7 @@ import { BFormGroup, BFormInput, BFormText, + BModal, } from "bootstrap-vue"; import { computed, type Ref, ref } from "vue"; @@ -22,6 +23,7 @@ import { withPrefix } from "@/utils/redirect"; import { errorMessageAsString } from "@/utils/simple-error"; import ExternalLogin from "@/components/User/ExternalIdentities/ExternalLogin.vue"; +import PasswordStrength from "@/components/Login/PasswordStength.vue"; interface Props { sessionCsrfToken: string; @@ -43,7 +45,7 @@ const emit = defineEmits<{ const email = ref(null); const confirm = ref(null); -const password = ref(null); +const password = ref(null); const username = ref(null); const subscribe = ref(null); const messageText: Ref = ref(null); @@ -145,7 +147,10 @@ async function submit() { name="password" type="password" autocomplete="new-password" - required /> + required + /> + + @@ -217,7 +222,10 @@ async function submit() { +