aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-01-21 15:24:25 -0800
committerAdam Soltys <[email protected]>2026-01-21 15:24:25 -0800
commit8388481901dfbb83db8955947841379b2b2c2675 (patch)
treeec8acd2ff9343cd5ed43d32e450ce305288fe932
parent5248bf5ffca4c8b3303de4c73d11c9f7f0cfde13 (diff)
downloadcoinos-ui-8388481901dfbb83db8955947841379b2b2c2675.tar.gz
coinos-ui-8388481901dfbb83db8955947841379b2b2c2675.zip
update forgot page
-rw-r--r--src/locales/en.json2
-rw-r--r--src/routes/(static)/forgot/+page.svelte53
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"
- >
- </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>