소스 검색

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();
 					exit();
 				}
 				}
 				else if ($_SESSION['login']['destination']['url'] != '') {
 				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();
+					}
 				}
 				}
 			}
 			}