Sfoglia il codice sorgente

401 all auth_request that are not GET

causefx 7 anni fa
parent
commit
66f9f3dfb8
1 ha cambiato i file con 1 aggiunte e 3 eliminazioni
  1. 1 3
      api/index.php

+ 1 - 3
api/index.php

@@ -1157,9 +1157,7 @@ switch ($function) {
 				auth();
 				break;
 			default:
-				$result['status'] = 'error';
-				$result['statusText'] = 'The function requested is not defined for method: ' . $method;
-				break;
+				exit(http_response_code(401));
 		}
 		break;
 	case 'v1_plugin':