not sure how that body got changed....

This commit is contained in:
alex-phillips 2020-02-26 08:34:26 -05:00
parent fceff42eba
commit b2b66fd139

View File

@ -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 })