mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-01 10:56:08 +01:00
Use default 2FA secret length
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user