diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/locales/en.json | 2 | ||||
| -rw-r--r-- | src/routes/(static)/forgot/+page.svelte | 53 |
2 files changed, 5 insertions, 50 deletions
diff --git a/src/locales/en.json b/src/locales/en.json index dd6e29f1..2d5ef646 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -189,7 +189,7 @@ "resetSent": "A password reset link will be sent to your email if we have it on file.", "continue": "Continue", "reset": "Password reset", - "resetDesc": "We can send a reset link if you added and verified your email otherwise please reach out to", + "resetDesc": "Please send an email with your username and any other details you can recall to", "optional": "Optional", "submit": "Submit", "token": "2FA Token", diff --git a/src/routes/(static)/forgot/+page.svelte b/src/routes/(static)/forgot/+page.svelte index 45180543..49a837ae 100644 --- a/src/routes/(static)/forgot/+page.svelte +++ b/src/routes/(static)/forgot/+page.svelte @@ -6,8 +6,6 @@ import Spinner from "$comp/Spinner.svelte"; import { fly } from "svelte/transition"; - let { form } = $props(); - let email = $state(); let loading; </script> @@ -16,51 +14,8 @@ > <h1 class="text-2xl font-bold text-center">{$t("login.reset")}</h1> - {#if form?.error} - <div class="text-red-600 text-center" in:fly> - {form.error} - </div> - {/if} - - {#if form?.success} - <div class="text-secondary"> - {$t("login.resetSent")} - </div> - - <div class="flex w-full"> - <a href="/login" class="btn"> - {$t("login.continue")} - </a> - </div> - {:else} - <form class="space-y-5" method="POST" use:enhance> - <div> - <input - placeholder={$t("login.email")} - name="email" - type="text" - required - class="bg-primary" - bind:value={email} - use:focus - autocapitalize="none" - /> - </div> - - <div class="text-secondary"> - {$t("login.resetDesc")} - <a href="mailto:[email protected]" class="font-bold" - >[email protected]</a - > - </div> - - <button type="submit" class="btn" disabled={loading}> - {#if loading} - <Spinner /> - {:else} - {$t("login.submit")} - {/if} - </button> - </form> - {/if} + <div class="text-secondary"> + {$t("login.resetDesc")} + <a href="mailto:[email protected]" class="font-bold">[email protected]</a> + </div> </div> |
