Generate CSRF Token during Client Portal login when using Entra

This commit is contained in:
johnnyq
2026-06-12 17:38:58 -04:00
parent d3a93652f3
commit d2d1a75448

View File

@@ -125,6 +125,7 @@ if (isset($_POST['code']) && $_POST['state'] == session_id()) {
$_SESSION['user_id'] = $user_id;
$_SESSION['user_type'] = 2;
$_SESSION['contact_id'] = $contact_id;
$_SESSION['csrf_token'] = randomString(32);
$_SESSION['login_method'] = "azure";
// Logging