mirror of
https://github.com/itflow-org/itflow
synced 2026-08-18 13:35:12 +00:00
Generate CSRF Token during Client Portal login when using Entra
This commit is contained in:
@@ -125,6 +125,7 @@ if (isset($_POST['code']) && $_POST['state'] == session_id()) {
|
|||||||
$_SESSION['user_id'] = $user_id;
|
$_SESSION['user_id'] = $user_id;
|
||||||
$_SESSION['user_type'] = 2;
|
$_SESSION['user_type'] = 2;
|
||||||
$_SESSION['contact_id'] = $contact_id;
|
$_SESSION['contact_id'] = $contact_id;
|
||||||
|
$_SESSION['csrf_token'] = randomString(32);
|
||||||
$_SESSION['login_method'] = "azure";
|
$_SESSION['login_method'] = "azure";
|
||||||
|
|
||||||
// Logging
|
// Logging
|
||||||
|
|||||||
Reference in New Issue
Block a user