Browse Source

Add minor check for auth

causefx 7 năm trước cách đây
mục cha
commit
75f47159a9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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));