From b2b66fd139bb1da4be4a717d7572489e776dea40 Mon Sep 17 00:00:00 2001 From: alex-phillips Date: Wed, 26 Feb 2020 08:34:26 -0500 Subject: [PATCH] not sure how that body got changed.... --- routes/users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/users.js b/routes/users.js index 28855b6..cc37abc 100644 --- a/routes/users.js +++ b/routes/users.js @@ -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 })