mirror of
https://github.com/linuxserver/heimdalljs.git
synced 2026-02-20 05:12:24 +08:00
adjusted length of totp secret in case someone has to manually type it in
This commit is contained in:
parent
214b46effc
commit
fceff42eba
@ -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()
|
||||
const secret = Speakeasy.generateSecret({ length: 16 })
|
||||
const qrcode = await QRCode.toDataURL(secret.otpauth_url, { scale: 6 })
|
||||
|
||||
user.update({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user