mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Updated authToken response code to be 401
This commit is contained in:
@ -176,7 +176,7 @@ function authToken(\Slim\Route $route)
|
||||
|
||||
if($authenticated === false)
|
||||
{
|
||||
$app->response->setStatus(403);
|
||||
$app->response->setStatus(401);
|
||||
$output = array("status" => "error", "message" => "API Token is missing or invalid; please supply a valid token");
|
||||
echo _json_encode($output);
|
||||
$app->stop();
|
||||
|
Reference in New Issue
Block a user