diff --git a/package.json b/package.json index edd2d6f4..672bc239 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "license": "CC-BY-NC-SA-4.0", "dependencies": { "@odit/lfk-client-js": "0.7.0", + "check-password-strength": "^2.0.2", "csvtojson": "^2.0.10", "gridjs": "3.3.0", "localforage": "1.9.0", diff --git a/src/components/auth/PasswordStrength.svelte b/src/components/auth/PasswordStrength.svelte new file mode 100644 index 00000000..a629ae5b --- /dev/null +++ b/src/components/auth/PasswordStrength.svelte @@ -0,0 +1,52 @@ + + + + +
+ +
diff --git a/src/components/auth/ResetPassword.svelte b/src/components/auth/ResetPassword.svelte index ad8b9792..510f718b 100644 --- a/src/components/auth/ResetPassword.svelte +++ b/src/components/auth/ResetPassword.svelte @@ -1,38 +1,43 @@ -{#if state==="reset_success"} +{#if state === 'reset_success'}
@@ -56,31 +61,31 @@
-{:else if state==="reset_error"} -
-
- -

- {$_('application_name')} -

-

- {$_('password-reset-failed')} -

-

- {$_('please-request-a-new-reset-mail')} -

-
+{:else if state === 'reset_error'} +
+
+ +

+ {$_('application_name')} +

+

+ {$_('password-reset-failed')} +

+

+ {$_('please-request-a-new-reset-mail')} +

-
-{:else if state==="reset_in_progress"} +{:else if state === 'reset_in_progress'}
@@ -102,11 +107,14 @@ placeholder={$_('new-password')} bind:value={password} />
+