summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-03-22 14:32:50 +1100
committerGitHub <noreply@github.com>2023-03-22 14:32:50 +1100
commitce52a8884a538f93f59c6583657d0a10891f1f67 (patch)
tree800dc1616503301ab23a81eda9fd08d40a6dc4b0 /src
parentMerge branch 'master' of github.com:fosscord/fosscord-server (diff)
parentfix totp using wrong settings key (diff)
downloadserver-ce52a8884a538f93f59c6583657d0a10891f1f67.tar.xz
Merge pull request #1012 from Puyodead1/patch/totp-user-settings
fix totp using wrong settings key
Diffstat (limited to 'src')
-rw-r--r--src/api/routes/auth/mfa/totp.ts2
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 },
 		});
 	},
 );