API Usage refreshes

This commit is contained in:
Kilian committed 2024-07-29 19:33:00 +02:00
1 parent 053724f9b7
commit e20206d4a5
4 files changed
+31 -3

No files matched your search

+3
View File
@@ -36,6 +36,9 @@ class AdminAuth implements IMiddleware
->httpCode(401)
->json(["code" => "NotAllowed", "message" => "Not Authorized"]);
}
// Keep fresh
$user->keepFresh();
} catch (Exception $err) {
// No user with this token exists
Response::response()