mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-03 11:55:52 +01:00
Use default 2FA secret length
This commit is contained in:
@@ -180,7 +180,7 @@ class AdminController extends AdminBaseController
|
|||||||
|
|
||||||
/** @var TwoFactorAuth $twoFa */
|
/** @var TwoFactorAuth $twoFa */
|
||||||
$twoFa = $this->grav['login']->twoFactorAuth();
|
$twoFa = $this->grav['login']->twoFactorAuth();
|
||||||
$secret = $twoFa->createSecret(160);
|
$secret = $twoFa->createSecret();
|
||||||
$image = $twoFa->getQrImageData($user->username, $secret);
|
$image = $twoFa->getQrImageData($user->username, $secret);
|
||||||
|
|
||||||
// Save secret into the user file.
|
// Save secret into the user file.
|
||||||
|
|||||||
Reference in New Issue
Block a user