Use default 2FA secret length

This commit is contained in:
Matias Griese
2018-05-10 12:13:04 +03:00
parent 1b19fcba2d
commit e59bf00638

View File

@@ -180,7 +180,7 @@ class AdminController extends AdminBaseController
/** @var TwoFactorAuth $twoFa */
$twoFa = $this->grav['login']->twoFactorAuth();
$secret = $twoFa->createSecret(160);
$secret = $twoFa->createSecret();
$image = $twoFa->getQrImageData($user->username, $secret);
// Save secret into the user file.