mirror of
https://github.com/linuxserver/heimdalljs.git
synced 2026-02-20 05:12:24 +08:00
not sure how that body got changed....
This commit is contained in:
parent
fceff42eba
commit
b2b66fd139
@ -153,7 +153,7 @@ router.put('/:id', upload.single('avatar'), async (req, res, next) => {
|
||||
if (Speakeasy.totp.verify({
|
||||
secret: user.totpSecret,
|
||||
encoding: 'base32',
|
||||
token: parseInt(body.totp, 10),
|
||||
token: parseInt(req.body.totp, 10),
|
||||
window: 0
|
||||
})) {
|
||||
user.update({ multifactorEnabled: true })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user