소스 검색

Update check_auth.php

FusionPBX 8 년 전
부모
커밋
3b7ff26239
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      resources/check_auth.php

+ 1 - 1
resources/check_auth.php

@@ -46,7 +46,7 @@
 	if (!isset($_SESSION['template_content'])) { $_SESSION["template_content"] = null; }
 
 //if the username session is not set the check username and password
-	 if (strlen($_SESSION['username']) == 0) {
+	if (strlen($_SESSION['username']) == 0 && isset($_REQUEST["username"]) && isset($_REQUEST["password"])) {
 
 		//clear the menu
 			$_SESSION["menu"] = "";