diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-03-22 14:32:50 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-22 14:32:50 +1100 |
commit | ce52a8884a538f93f59c6583657d0a10891f1f67 (patch) | |
tree | 800dc1616503301ab23a81eda9fd08d40a6dc4b0 | |
parent | Merge branch 'master' of github.com:fosscord/fosscord-server (diff) | |
parent | fix totp using wrong settings key (diff) | |
download | server-ce52a8884a538f93f59c6583657d0a10891f1f67.tar.xz |
Merge pull request #1012 from Puyodead1/patch/totp-user-settings
fix totp using wrong settings key
-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 }, }); }, ); |