aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-10-01 13:37:14 -0700
committerAdam Soltys <[email protected]>2024-10-01 13:37:14 -0700
commit8e88185930537cb45ed983047bd00fcd8ceac3c2 (patch)
treeb35a30080a6504fccf1078eb4c3dd8f287a2133f
parent681b6da80fa5f7d4f697201bcd77229f8ac52c0f (diff)
downloadcoinos-ui-8e88185930537cb45ed983047bd00fcd8ceac3c2.tar.gz
coinos-ui-8e88185930537cb45ed983047bd00fcd8ceac3c2.zip
use username field for resets
-rw-r--r--src/routes/(app)/[username]/(profile)/+layout.svelte2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/(app)/[username]/(profile)/+layout.svelte b/src/routes/(app)/[username]/(profile)/+layout.svelte
index a5faa0af..8259507e 100644
--- a/src/routes/(app)/[username]/(profile)/+layout.svelte
+++ b/src/routes/(app)/[username]/(profile)/+layout.svelte
@@ -63,7 +63,7 @@
let reset = async () => {
try {
- await post(`/reset`, { username, password });
+ await post(`/reset`, { username: n, password });
success("Password reset");
} catch (e) {
fail(e.message);