Update check_auth.php

Remove $_SESSION['context'] found a better way.
This commit is contained in:
FusionPBX 2020-10-22 04:05:54 -06:00 committed by GitHub
parent 6a728e2563
commit 73fd96ebd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -74,7 +74,7 @@
if ($result["authorized"] === "true") {
//set the session variables
$_SESSION["domain_uuid"] = $result["domain_uuid"];
$_SESSION["domain_name"] = $result["domain_name"];
//$_SESSION["domain_name"] = $result["domain_name"];
$_SESSION["user_uuid"] = $result["user_uuid"];
//user session array
@ -250,7 +250,6 @@
//set the context
$_SESSION['user']['user_context'] = $row["user_context"];
$_SESSION['user_context'] = $row["user_context"];
$_SESSION['context'] = $_SESSION["domain_name"];
}
}
unset($sql, $parameters, $result, $row);