database
This commit is contained in:
@@ -50,7 +50,7 @@ class Frontend
|
||||
$this->auth = Auth::instance();
|
||||
$token = request()->header('token');
|
||||
if ($token) {
|
||||
if(request()->controller != 'app\czg\app\controller\LoginController' && request()->action != 'index'){} {
|
||||
if(!strstr(request()->controller, 'LoginController') && request()->action != 'index') {
|
||||
if(!$this->auth->init($token)) {
|
||||
$this->error('Token expiration', [], 401);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user