diff options
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"); + } } |
