|
|
@@ -1,5 +1,6 @@
|
|
|
<?php
|
|
|
use RobThree\Auth\TwoFactorAuth;
|
|
|
+use RobThree\Auth\Providers\Qr\QRServerProvider;
|
|
|
require_once __DIR__ . "/../vendor/autoload.php";
|
|
|
|
|
|
if (isset($argv[1]) && isset($argv[2])) {
|
|
|
@@ -13,7 +14,7 @@ if (isset($argv[1]) && isset($argv[2])) {
|
|
|
exit();
|
|
|
}
|
|
|
|
|
|
-$tfa = new TwoFactorAuth("Hestia Control Panel");
|
|
|
+$tfa = new TwoFactorAuth(new QRServerProvider(), "Hestia Control Panel");
|
|
|
|
|
|
// Verify code
|
|
|
$result = $tfa->verifyCode($secret, $token);
|