diff options
Diffstat (limited to 'src/routes/disable2fa/+server.js')
| -rw-r--r-- | src/routes/disable2fa/+server.js | 4 |
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)); } |
