From 1792eb0ce5a2ff127e9f3c3bce392749f20b3f86 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 3 Oct 2022 10:21:24 -0700 Subject: migrate to new actions/cookies api --- src/routes/disable2fa/+server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/routes/disable2fa/+server.js') 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)); } -- cgit v1.2.3