浏览代码

Update check_auth.php

FusionPBX 5 年之前
父节点
当前提交
7112d0fd43
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      resources/check_auth.php

+ 4 - 2
resources/check_auth.php

@@ -261,8 +261,10 @@
 					exit();
 				}
 				else if ($_SESSION['login']['destination']['url'] != '') {
-					header("Location: ".$_SESSION['login']['destination']['url']);
-					exit();
+					if (isset($_SESSION["username"]) && (strlen($_SESSION["username"]) > 0)) {
+						header("Location: ".$_SESSION['login']['destination']['url']);
+						exit();
+					}
 				}
 			}