Преглед изворни кода

Update authentication.php

Update the session username if authorized is true.
FusionPBX пре 9 година
родитељ
комит
a870459bd3
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      core/authentication/resources/classes/authentication.php

+ 1 - 0
core/authentication/resources/classes/authentication.php

@@ -91,6 +91,7 @@ class authentication {
 						$result['results'][] = $array;
 					}
 					if ($result["authorized"] == "true") {
+						$_SESSION['username'] = $result["username"];
 						break;
 					}
 				}