mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
Merge pull request #310 from laf/issue-laf-54
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