summary refs log tree commit diff
path: root/src/api/routes/auth
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@proton.me>2023-03-21 22:32:55 -0400
committerPuyodead1 <puyodead@proton.me>2023-03-21 22:32:55 -0400
commit002480df9d0f135adf68cea727316e5c3a1a53cc (patch)
tree9b12694784f962df07599a1310a06282eb06c2e4 /src/api/routes/auth
parentMerge pull request #1005 from Xanderplayz18/patch-1 (diff)
downloadserver-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.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 },
 		});
 	},
 );