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:
parent
adaeeb4308
commit
6b1c65bb08
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue