Fix reset-password page to look up the reset token correctly
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user