Explorar o código

Update check_auth.php

FusionPBX %!s(int64=5) %!d(string=hai) anos
pai
achega
3e5c57b4b8
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      resources/check_auth.php

+ 2 - 1
resources/check_auth.php

@@ -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"];