diff options
Diffstat (limited to 'apps/kit/src/routes/(main)/(public)/reset-password')
| -rw-r--r-- | apps/kit/src/routes/(main)/(public)/reset-password/+page.svelte | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/apps/kit/src/routes/(main)/(public)/reset-password/+page.svelte b/apps/kit/src/routes/(main)/(public)/reset-password/+page.svelte index 865be10..9ee4a83 100644 --- a/apps/kit/src/routes/(main)/(public)/reset-password/+page.svelte +++ b/apps/kit/src/routes/(main)/(public)/reset-password/+page.svelte @@ -17,13 +17,16 @@ title: "", } as ErrorResult; + let loading = false; let showSuccessAlert = false; async function submitFormAsync() { errorData.text = ""; errorData.title = ""; showSuccessAlert = false; + loading = true; const request = await create_forgot_password_request(formData.email); + loading = false; if (!request.ok) { errorData.text = request.data.text ?? $LL.tryAgainSoon(); errorData.title = request.data.title ?? $LL.unexpectedError(); @@ -38,12 +41,12 @@ <h2 class="mt-6 text-center text-3xl tracking-tight font-bold text-gray-900" > - {$LL["reset-password"].requestAPasswordReset()} + {$LL.requestAPasswordReset()} </h2> <p class="mt-2 text-center text-sm text-gray-600"> - {$LL.or()} + {$LL.or().toLowerCase()} <a href="/sign-in" class="link"> - {$LL["reset-password"].signIntoYourAccount()} + {$LL.signIntoYourAccount()} </a> </p> </div> @@ -61,7 +64,7 @@ <Alert type="success" title={$LL.success()} - message={$LL["reset-password"].requestSentMessage()} + message={$LL.requestSentMessage()} visible={showSuccessAlert} /> |
