1
Fork 0
mirror of https://github.com/diced/zipline.git synced 2025-04-11 23:31:17 -05:00

fix: a totp secret that shouldn't be /probably/ shouldn't be revealed

This commit is contained in:
Jayvin Hernandez 2025-02-01 14:40:06 -08:00
parent adaeeb4308
commit 6b1c65bb08
No known key found for this signature in database
GPG key ID: 97C2E533F17AF0EB

View file

@ -187,6 +187,7 @@ async function handler(req: NextApiReq, res: NextApiRes, user: UserExtended) {
return res.json(newUser);
} else {
delete target.password;
delete target.totpSecret;
if (user.superAdmin && target.superAdmin) {
delete target.files;