diff options
| author | Adam Soltys <[email protected]> | 2023-12-06 20:33:45 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-12-06 20:33:45 -0800 |
| commit | 6b3ff247e4125941a611369ed9bb74a2ffca57d8 (patch) | |
| tree | 91da939350398188834e5e002bc78011a2a8e5bf /src/routes/(app)/disable2fa/+server.js | |
| parent | bb59ac3e4e7fcbf7f8a48820eab0ee21558183fc (diff) | |
| parent | d69c34cf389639eac82d24d1f1b02f038ef42399 (diff) | |
| download | coinos-ui-6b3ff247e4125941a611369ed9bb74a2ffca57d8.tar.gz coinos-ui-6b3ff247e4125941a611369ed9bb74a2ffca57d8.zip | |
Merge branch 'master' into swapee
Diffstat (limited to 'src/routes/(app)/disable2fa/+server.js')
| -rw-r--r-- | src/routes/(app)/disable2fa/+server.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/routes/(app)/disable2fa/+server.js b/src/routes/(app)/disable2fa/+server.js index b2bb07ec..1e264398 100644 --- a/src/routes/(app)/disable2fa/+server.js +++ b/src/routes/(app)/disable2fa/+server.js @@ -1,13 +1,13 @@ -import { error, json } from '@sveltejs/kit'; -import { auth, post } from '$lib/utils'; +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 { + let body = await request.json(); + let res = await post("/disable2fa", body, auth(cookies)); - return json(res); - } catch (e) { - throw error(500, 'Problem disabling 2fa'); - } + return json(res); + } catch (e) { + throw error(500, "Problem disabling 2fa"); + } } |
