mirror of
https://github.com/itflow-org/itflow
synced 2026-03-04 12:54:51 +00:00
API Key error wording
This commit is contained in:
@@ -73,10 +73,10 @@ if (isset($api_key)) {
|
|||||||
if (mysqli_num_rows($sql) !== 1) {
|
if (mysqli_num_rows($sql) !== 1) {
|
||||||
// Invalid Key
|
// Invalid Key
|
||||||
header(WORDING_UNAUTHORIZED);
|
header(WORDING_UNAUTHORIZED);
|
||||||
mysqli_query($mysqli, "INSERT INTO logs SET log_type = 'API', log_action = 'Failed', log_description = 'Incorrect or expired Key', log_ip = '$ip', log_user_agent = '$user_agent', log_created_at = NOW()");
|
mysqli_query($mysqli, "INSERT INTO logs SET log_type = 'API', log_action = 'Failed', log_description = 'Incorrect or expired key', log_ip = '$ip', log_user_agent = '$user_agent', log_created_at = NOW()");
|
||||||
|
|
||||||
$return_arr['success'] = "False";
|
$return_arr['success'] = "False";
|
||||||
$return_arr['message'] = "API Key authentication failure or expired.";
|
$return_arr['message'] = "Authentication failed. API key is invalid or has expired.";
|
||||||
|
|
||||||
header(WORDING_UNAUTHORIZED);
|
header(WORDING_UNAUTHORIZED);
|
||||||
echo json_encode($return_arr);
|
echo json_encode($return_arr);
|
||||||
|
|||||||
Reference in New Issue
Block a user