From 8b2f1965e2a754da6e40a3051e8ae3e771d70336 Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Sun, 7 Feb 2021 13:08:44 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=80=20ResetPassword=20-=20success=20an?= =?UTF-8?q?d=20error=20states?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ref #43 --- src/components/ResetPassword.svelte | 80 +++++++++++++++++++---------- 1 file changed, 52 insertions(+), 28 deletions(-) diff --git a/src/components/ResetPassword.svelte b/src/components/ResetPassword.svelte index b49ceffe..3b1e4ca9 100644 --- a/src/components/ResetPassword.svelte +++ b/src/components/ResetPassword.svelte @@ -1,38 +1,38 @@ -{#if reset_success} +{#if state==="reset_success"}
@@ -56,7 +56,31 @@
-{:else} +{:else if state==="reset_error"} +
+
+ +

+ {$_('application_name')} +

+

+ Password reset failed! +

+

+ Please request a new reset mail... +

+ +
+
+{:else if state==="reset_in_progress"}
@@ -76,7 +100,7 @@ required="" class="border-gray-300 placeholder-gray-500 appearance-none rounded-md relative block w-full px-3 py-2 border text-gray-900 focus:outline-none focus:shadow-outline-blue focus:border-blue-300 focus:z-10 sm:text-sm" placeholder={$_('new-password')} - bind:value={newPassword} /> + bind:value={password} />