Two factor problems fixed after compose update

This commit is contained in:
2026-07-07 23:18:06 +02:00
parent 97963b34aa
commit dec038fc0d
143 changed files with 11760 additions and 10 deletions

View File

@@ -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();