1
0
mirror of git://f0xx.org/ac/ac-deploy synced 2026-07-29 02:57:38 +03:00

fix(cluster0): 2FA nginx routes and extend pending-2FA on poll

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Anton Afanasyeu
2026-07-05 19:12:53 +02:00
parent 430457dcd9
commit cf2e6ecb4e
2 changed files with 3 additions and 1 deletions

View File

@@ -274,6 +274,8 @@ if (
echo json_encode(['status' => 'expired']);
exit;
}
// Keep the pending-2FA window alive while the desktop polls (5 min from last poll).
$_SESSION['pending_2fa_exp'] = time() + 300;
$status = AuthApproval::pollStatus($rawToken);
if ($status === 'approved') {
// Attempt to complete the login server-side within this same request