From 75d8f7331b6ae78f3979bb62148188a16f83cb8d Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Fri, 26 Mar 2021 19:47:26 +0100 Subject: [PATCH] Reset can now only be triggered if pw is strong enoug ref #106 --- src/components/auth/ResetPassword.svelte | 76 +++++++++++++----------- 1 file changed, 41 insertions(+), 35 deletions(-) diff --git a/src/components/auth/ResetPassword.svelte b/src/components/auth/ResetPassword.svelte index 459daa95..510f718b 100644 --- a/src/components/auth/ResetPassword.svelte +++ b/src/components/auth/ResetPassword.svelte @@ -1,39 +1,43 @@ -{#if state==="reset_success"} +{#if state === 'reset_success'}
@@ -57,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'}
@@ -109,6 +113,8 @@