Update check_auth.php

This commit is contained in:
FusionPBX 2019-10-24 02:01:26 -06:00 committed by GitHub
parent ea536d2f6e
commit f3ea559ef3
1 changed files with 2 additions and 1 deletions

View File

@ -71,13 +71,14 @@
}
$auth->debug = false;
$result = $auth->validate();
if ($result["authorized"] == "true") {
if ($result["authorized"] === "true") {
//set the session variables
$_SESSION["domain_uuid"] = $result["domain_uuid"];
$_SESSION["user_uuid"] = $result["user_uuid"];
//user session array
$_SESSION["user"]["domain_uuid"] = $result["domain_uuid"];
$_SESSION["user"]["domain_name"] = $result["domain_name"];
$_SESSION["user"]["user_uuid"] = $result["user_uuid"];
$_SESSION["user"]["username"] = $result["username"];
$_SESSION["user"]["contact_uuid"] = $result["contact_uuid"];