diff options
| author | Adam Soltys <[email protected]> | 2023-12-01 20:04:13 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-12-01 20:04:13 -0800 |
| commit | 216a600224fde22ce76b367557a02094ec693886 (patch) | |
| tree | d1189bbaa39db204633523132a7d4767b952717d /src/routes/(app)/disable2fa | |
| parent | 7d9bc1f54dfd04172e8d6d43ebc2efd6f407e833 (diff) | |
| download | coinos-ui-216a600224fde22ce76b367557a02094ec693886.tar.gz coinos-ui-216a600224fde22ce76b367557a02094ec693886.zip | |
prettier
Diffstat (limited to 'src/routes/(app)/disable2fa')
| -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"); + } } |
