Reauth endpoint

This commit is contained in:
Kilian committed 2024-07-28 22:37:12 +02:00
1 parent 7723dd0722
commit 9828ee762a
9 files changed
+201 -26

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ class AdminAuth implements IMiddleware
->header("Access-Control-Allow-Methods: *")
->header("Access-Control-Allow-Headers: *")
->httpCode(401)
->json(["code" => "Unauthorized", "message" => "Not Authorized"]);
->json(["code" => "NotAllowed", "message" => "Not Authorized"]);
}
} catch (Exception $err) {
// No user with this token exists