aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/disable2fa
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-02-06 16:40:14 -0800
committerAdam Soltys <[email protected]>2023-02-06 16:40:19 -0800
commit66740dea41f2772d46e1b13b91ef0e7b1a68bfff (patch)
tree2ff8926078222020c05252e64da6ae5e9c9cbbef /src/routes/(app)/disable2fa
parent916f331e0e9a051830ce988639bb2149788e8228 (diff)
downloadcoinos-ui-66740dea41f2772d46e1b13b91ef0e7b1a68bfff.tar.gz
coinos-ui-66740dea41f2772d46e1b13b91ef0e7b1a68bfff.zip
new pinpad component
Diffstat (limited to 'src/routes/(app)/disable2fa')
-rw-r--r--src/routes/(app)/disable2fa/+server.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/(app)/disable2fa/+server.js b/src/routes/(app)/disable2fa/+server.js
index 13fcb2b9..b2bb07ec 100644
--- a/src/routes/(app)/disable2fa/+server.js
+++ b/src/routes/(app)/disable2fa/+server.js
@@ -1,4 +1,4 @@
-import { error } from '@sveltejs/kit';
+import { error, json } from '@sveltejs/kit';
import { auth, post } from '$lib/utils';
export async function POST({ cookies, request }) {
@@ -6,7 +6,7 @@ export async function POST({ cookies, request }) {
let body = await request.json();
let res = await post('/disable2fa', body, auth(cookies));
- return new Response(JSON.stringify(res));
+ return json(res);
} catch (e) {
throw error(500, 'Problem disabling 2fa');
}