diff options
| author | Adam Soltys <[email protected]> | 2024-08-31 15:23:49 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-08-31 15:23:49 -0700 |
| commit | a89d4ee9b9bf0c15505a58803585f1847731983e (patch) | |
| tree | 46098814beabc79de334898dbc4808aed8d5f329 /src/routes/(app)/forgot | |
| parent | df71664f20312e81134ee90ad561f55d3020ee0a (diff) | |
| download | coinos-ui-a89d4ee9b9bf0c15505a58803585f1847731983e.tar.gz coinos-ui-a89d4ee9b9bf0c15505a58803585f1847731983e.zip | |
typescript
Diffstat (limited to 'src/routes/(app)/forgot')
| -rw-r--r-- | src/routes/(app)/forgot/+page.server.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/routes/(app)/forgot/+page.server.ts b/src/routes/(app)/forgot/+page.server.ts index 48411539..de440f02 100644 --- a/src/routes/(app)/forgot/+page.server.ts +++ b/src/routes/(app)/forgot/+page.server.ts @@ -1,5 +1,5 @@ -import { fail, redirect } from "@sveltejs/kit"; -import { fd, post, login } from "$lib/utils"; +import { fail } from "@sveltejs/kit"; +import { fd, post } from "$lib/utils"; export const actions = { default: async ({ request }) => { @@ -7,7 +7,7 @@ export const actions = { let { email } = await fd(request); await post("/forgot", { email }); return { success: true }; - } catch (e) { + } catch (e: any) { return fail(400, { error: e.message }); } }, |
