better wording in api response

This commit is contained in:
HB9HIL
2024-11-02 09:24:02 +01:00
committed by GitHub
parent e01fd89789
commit 19e4223009

View File

@@ -182,7 +182,7 @@ class API extends CI_Controller {
if(!isset($obj['key']) || $this->api_model->authorize($obj['key']) == 0) {
http_response_code(401);
echo json_encode(['status' => 'failed', 'reason' => "missing api key"]);
echo json_encode(['status' => 'failed', 'reason' => "missing or wrong api key"]);
die();
}