From 002480df9d0f135adf68cea727316e5c3a1a53cc Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Tue, 21 Mar 2023 22:32:55 -0400 Subject: fix totp using wrong settings key --- src/api/routes/auth/mfa/totp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/api/routes/auth/mfa/totp.ts b/src/api/routes/auth/mfa/totp.ts index 6236d209..bbbd1236 100644 --- a/src/api/routes/auth/mfa/totp.ts +++ b/src/api/routes/auth/mfa/totp.ts @@ -63,7 +63,7 @@ router.post( return res.json({ token: await generateToken(user.id), - user_settings: user.settings, + settings: { ...user.settings, index: undefined }, }); }, ); -- cgit 1.4.1