blob: 55169a5ebce38c8e2277f5d778b66c7830df39a3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import { fail } from "@sveltejs/kit";
import { fd, post } from "$lib/utils";
export const actions = {
default: async ({ request }) => {
try {
const { email } = await fd(request);
await post("/forgot", { email });
return { success: true };
} catch (e: any) {
return fail(400, { error: e.message });
}
},
};
|