Two factor problems fixed after compose update
This commit is contained in:
@@ -5,7 +5,7 @@ session_start();
|
||||
require_once "{$_SERVER['DOCUMENT_ROOT']}/../vendor/autoload.php";
|
||||
require_once "{$_SERVER['DOCUMENT_ROOT']}/login/php/authFunctions.php";
|
||||
|
||||
use RobThree\Auth\Providers\Qr\EndroidQrCodeWithLogoProvider;
|
||||
use RobThree\Auth\Providers\Qr\EndroidQrCodeProvider;
|
||||
use RobThree\Auth\TwoFactorAuth;
|
||||
|
||||
if (!isset($_POST['verification-1']) && !isset($_SESSION['mfa']['user_secret']) && !isset($_SESSION['mfa']['user_uuid'])) {
|
||||
@@ -20,7 +20,7 @@ if (checkLoginAttempts() > 3) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$tfa = new TwoFactorAuth(new EndroidQrCodeWithLogoProvider());
|
||||
$tfa = new TwoFactorAuth(new EndroidQrCodeProvider());
|
||||
|
||||
$secret = $_SESSION['mfa']['user_secret'];
|
||||
$postedCode = linkVerificationPosts();
|
||||
|
||||
Reference in New Issue
Block a user