diff options
| author | Adam Soltys <[email protected]> | 2024-10-31 09:34:16 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-10-31 09:34:16 -0700 |
| commit | 243abb0a3d29e8e34e263eec843488e3bdb468a4 (patch) | |
| tree | be55931ba0f3c110c3001f56a5339cb63e78b761 /src/routes/(app)/disable2fa | |
| parent | 4742e72ec25823ceeea7848fb2e1f868bed7f472 (diff) | |
| download | coinos-ui-243abb0a3d29e8e34e263eec843488e3bdb468a4.tar.gz coinos-ui-243abb0a3d29e8e34e263eec843488e3bdb468a4.zip | |
biome
Diffstat (limited to 'src/routes/(app)/disable2fa')
| -rw-r--r-- | src/routes/(app)/disable2fa/+server.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/routes/(app)/disable2fa/+server.ts b/src/routes/(app)/disable2fa/+server.ts index 0afda3b9..81ee2ff2 100644 --- a/src/routes/(app)/disable2fa/+server.ts +++ b/src/routes/(app)/disable2fa/+server.ts @@ -2,12 +2,12 @@ import { error, json } from "@sveltejs/kit"; import { auth, post } from "$lib/utils"; export async function POST({ cookies, request }) { - try { - let body = await request.json(); - let res = await post("/disable2fa", body, auth(cookies)); + try { + const body = await request.json(); + const res = await post("/disable2fa", body, auth(cookies)); - return json(res); - } catch (e) { - error(500, "Problem disabling 2fa"); - } + return json(res); + } catch (e) { + error(500, "Problem disabling 2fa"); + } } |
