diff options
author | Puyodead1 <puyodead@proton.me> | 2023-03-21 22:32:55 -0400 |
---|---|---|
committer | Puyodead1 <puyodead@proton.me> | 2023-03-21 22:32:55 -0400 |
commit | 002480df9d0f135adf68cea727316e5c3a1a53cc (patch) | |
tree | 9b12694784f962df07599a1310a06282eb06c2e4 /src/api/routes/auth | |
parent | Merge pull request #1005 from Xanderplayz18/patch-1 (diff) | |
download | server-002480df9d0f135adf68cea727316e5c3a1a53cc.tar.xz |
fix totp using wrong settings key
Diffstat (limited to 'src/api/routes/auth')
-rw-r--r-- | src/api/routes/auth/mfa/totp.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 }, }); }, ); |