aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/disable2fa
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-10-03 10:21:24 -0700
committerAdam Soltys <[email protected]>2022-10-03 10:21:24 -0700
commit1792eb0ce5a2ff127e9f3c3bce392749f20b3f86 (patch)
treeebae8e1984d66cac88f04177fcad1a279313aa8c /src/routes/disable2fa
parentcb272477247582355d38bc6c47b1795801689a55 (diff)
downloadcoinos-ui-1792eb0ce5a2ff127e9f3c3bce392749f20b3f86.tar.gz
coinos-ui-1792eb0ce5a2ff127e9f3c3bce392749f20b3f86.zip
migrate to new actions/cookies api
Diffstat (limited to 'src/routes/disable2fa')
-rw-r--r--src/routes/disable2fa/+server.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/disable2fa/+server.js b/src/routes/disable2fa/+server.js
index be09f3f4..237da445 100644
--- a/src/routes/disable2fa/+server.js
+++ b/src/routes/disable2fa/+server.js
@@ -1,8 +1,8 @@
import { auth, post } from '$lib/utils';
-export async function PUT({ request }) {
+export async function PUT({ cookies, request }) {
let body = await request.json();
- let res = await post('/disable2fa', body, auth(request));
+ let res = await post('/disable2fa', body, auth(cookies));
return new Response(JSON.stringify(res));
}