浏览代码

Update authentication.php

FusionPBX 6 年之前
父节点
当前提交
e49fe4d52c
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      core/authentication/resources/classes/authentication.php

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

@@ -90,8 +90,12 @@ class authentication {
 					if (count($_SESSION['authentication']['methods']) > 1) {
 					if (count($_SESSION['authentication']['methods']) > 1) {
 						$result['results'][] = $array;
 						$result['results'][] = $array;
 					}
 					}
+
 					if ($result["authorized"] == "true") {
 					if ($result["authorized"] == "true") {
+						//add the username to the session
 						$_SESSION['username'] = $result["username"];
 						$_SESSION['username'] = $result["username"];
+
+						//end the loop
 						break;
 						break;
 					}
 					}
 				}
 				}