API Usage refreshes
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user