mirror of
https://github.com/linuxserver/heimdalljs.git
synced 2026-02-20 05:12:24 +08:00
better comment for why we delete totpSecret from the body
This commit is contained in:
parent
ac69aba621
commit
8a899a1701
@ -114,7 +114,10 @@ router.put('/', upload.single('avatar'), async (req, res, next) => {
|
||||
delete req.body.password
|
||||
}
|
||||
|
||||
// ALWAYS DELETE totp, this should only be set by the server
|
||||
/**
|
||||
* This is just a security precaution.
|
||||
* ALWAYS DELETE totp, this should only be set by the server.
|
||||
*/
|
||||
delete req.body.totpSecret
|
||||
|
||||
// Begin process to set up and confirm multi-factor authentication
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user