- Authorization problem now sends 403 error as it should
This commit is contained in:
parent
8e29b0513a
commit
cebb213830
@ -29,8 +29,8 @@ return [
|
|||||||
return function(array $errorData) {
|
return function(array $errorData) {
|
||||||
return HttpFactory::createJsonResponse($errorData + [
|
return HttpFactory::createJsonResponse($errorData + [
|
||||||
'api.error' => "Authorization failed",
|
'api.error' => "Authorization failed",
|
||||||
'api.datetime' => (new \DateTime)->format(\DateTime::ATOM),
|
'api.datetime' => (new \DateTime)->format(\DateTime::ISO8601),
|
||||||
], 401);
|
], 403);
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user