database
This commit is contained in:
@@ -51,7 +51,7 @@ class BaseController
|
|||||||
$token = request()->header('token');
|
$token = request()->header('token');
|
||||||
if ($token) {
|
if ($token) {
|
||||||
if(!$this->auth->init($token)) {
|
if(!$this->auth->init($token)) {
|
||||||
$this->error('Token expiration', [], 409);
|
$this->error('Token expiration', [], 401);
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
if ($needLogin) {
|
if ($needLogin) {
|
||||||
|
|||||||
Reference in New Issue
Block a user