Update check_auth.php

This commit is contained in:
FusionPBX 2019-10-24 02:01:26 -06:00 committed by GitHub
parent 6a8fc50e53
commit df7316fc6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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"];