adjusted length again - length is the value for the ASCII version, not the base32 version

This commit is contained in:
alex-phillips 2020-02-26 08:38:41 -05:00
parent b2b66fd139
commit e5251b604f

View File

@ -137,7 +137,7 @@ router.put('/:id', upload.single('avatar'), async (req, res, next) => {
// Begin process to set up and confirm multi-factor authentication
if (user.multifactorEnabled === false && !!req.body.multifactorEnabled === true) {
const secret = Speakeasy.generateSecret({ length: 16 })
const secret = Speakeasy.generateSecret({ length: 10 })
const qrcode = await QRCode.toDataURL(secret.otpauth_url, { scale: 6 })
user.update({