Browse Source

Add minor check for auth

causefx 7 years ago
parent
commit
75f47159a9
1 changed files with 1 additions and 1 deletions
  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));