diff --git a/frontend/src/routes/(authentication)/password-reset/confirm/+page.server.ts b/frontend/src/routes/(authentication)/password-reset/confirm/+page.server.ts
index ae0588720..f985c12a9 100644
--- a/frontend/src/routes/(authentication)/password-reset/confirm/+page.server.ts
+++ b/frontend/src/routes/(authentication)/password-reset/confirm/+page.server.ts
@@ -1,20 +1,21 @@
import { fail, redirect, type Actions } from '@sveltejs/kit';
import type { PageServerLoad } from './$types';
import { ResetPasswordSchema } from '$lib/utils/schemas';
-import { setError, superValidate } from 'sveltekit-superforms/server';
+import { setError, superValidate } from 'sveltekit-superforms';
import { setFlash } from 'sveltekit-flash-message/server';
import { BASE_API_URL } from '$lib/utils/constants';
import * as m from '$paraglide/messages';
+import { zod } from 'sveltekit-superforms/adapters';
export const load: PageServerLoad = async (event) => {
- const form = await superValidate(event.request, ResetPasswordSchema);
+ const form = await superValidate(event.request, zod(ResetPasswordSchema));
return { form };
};
export const actions: Actions = {
default: async (event) => {
- const form = await superValidate(event.request, ResetPasswordSchema);
+ const form = await superValidate(event.request, zod(ResetPasswordSchema));
if (!form.valid) {
return fail(400, { form });
}
diff --git a/frontend/src/routes/(authentication)/password-reset/confirm/+page.svelte b/frontend/src/routes/(authentication)/password-reset/confirm/+page.svelte
index 946967904..2c8dd0e99 100644
--- a/frontend/src/routes/(authentication)/password-reset/confirm/+page.svelte
+++ b/frontend/src/routes/(authentication)/password-reset/confirm/+page.svelte
@@ -4,6 +4,7 @@
import SuperForm from '$lib/components/Forms/Form.svelte';
import TextField from '$lib/components/Forms/TextField.svelte';
import { ResetPasswordSchema } from '$lib/utils/schemas';
+ import { zod } from 'sveltekit-superforms/adapters';
export let data: PageData;
@@ -29,7 +30,7 @@
data={data?.form}
dataType="form"
let:form
- validators={ResetPasswordSchema}
+ validators={zod(ResetPasswordSchema)}
>