summary refs log tree commit diff
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-03-24 04:18:19 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-03-24 04:18:19 +1100
commit59c0dd07310bfcdb79a6f7da0d530db599b64a4f (patch)
treef97753bfe936f2c32b149530c52f6b2b4ec189c2
parentWork towards fixing openapi spec (diff)
parentMerge pull request #1012 from Puyodead1/patch/totp-user-settings (diff)
downloadserver-59c0dd07310bfcdb79a6f7da0d530db599b64a4f.tar.xz
Merge branch 'master' of github.com:fosscord/fosscord-server
-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 },
 		});
 	},
 );