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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user