Fix reset-password page to look up the reset token correctly

This commit is contained in:
NeilClack
2026-09-10 13:42:36 -05:00
parent 5ec3018f8b
commit ae8d661364
3 changed files with 27 additions and 7 deletions
+9 -2
View File
@@ -2,7 +2,7 @@
import type { PageProps } from './$types';
import Window from '$lib/components/containers/Window.svelte';
let { form }: PageProps = $props();
let { data, form }: PageProps = $props();
</script>
<Window>
@@ -13,7 +13,14 @@
{/if}
<form method="POST" class="flex flex-col gap-4">
<h1 class="text-2xl font-bold text-slate-900">Reset Password</h1>
<h1 class="text-2xl font-bold text-slate-900">
{data.invite ? 'Set Your Password' : 'Reset Password'}
</h1>
{#if data.invite}
<p class="text-sm text-slate-600">
Welcome! Choose a password to finish setting up your account.
</p>
{/if}
<div class="flex flex-col gap-1.5">
<label for="password" class="text-sm font-medium text-slate-700"> New Password </label>