diff options
Diffstat (limited to 'src/routes/(app)/disable2fa/+server.ts')
| -rw-r--r-- | src/routes/(app)/disable2fa/+server.ts | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/routes/(app)/disable2fa/+server.ts b/src/routes/(app)/disable2fa/+server.ts deleted file mode 100644 index 0d1c4573..00000000 --- a/src/routes/(app)/disable2fa/+server.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { error, json } from "@sveltejs/kit"; -import { auth, post } from "$lib/utils"; - -export async function POST({ cookies, request }) { - try { - const body = await request.json(); - const res = await post("/disable2fa", body, auth(cookies)); - - return json(res); - } catch { - error(500, "Problem disabling 2fa"); - } -} |
