소스 검색

Add minor check for auth

causefx 7 년 전
부모
커밋
75f47159a9
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      api/index.php

+ 1 - 1
api/index.php

@@ -15,7 +15,7 @@ if ($function === false) {
 	$result['statusText'] = "No API Path Supplied";
 	exit(json_encode($result));
 }
-if (isApprovedRequest() === false) {
+if (isApprovedRequest() === false && $function !== 'v1_auth') {
 	$result['status'] = "error";
 	$result['statusText'] = "Not Authorized";
 	exit(json_encode($result));