后台登录
This commit is contained in:
@@ -142,7 +142,9 @@ class adminApi extends Controller
|
||||
//通过头部信息获取authorization0
|
||||
$token = $this->request->server('HTTP_AUTHORIZATION', $this->request->request('token', \think\Cookie::get('token')));
|
||||
//检测是否登录
|
||||
if (!$this->auth->isLogin($token)) {
|
||||
// if (!$this->auth->isLogin($token)) {
|
||||
$auth = new Auth ;
|
||||
if (!$auth->isLogin($token)) {
|
||||
Hook::listen('admin_nologin', $this);
|
||||
$url = Session::get('referer');
|
||||
$url = $url ? $url : $this->request->url();
|
||||
|
||||
Reference in New Issue
Block a user