Browse Source

【程序目录】修复禁用用户登录问题

From-wh 2 years atrás
parent
commit
d7d4cdc69d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      crmeb/app/services/user/UserAuthServices.php

+ 1 - 1
crmeb/app/services/user/UserAuthServices.php

@@ -70,7 +70,7 @@ class UserAuthServices extends BaseServices
             throw new AuthException(110003);
             throw new AuthException(110003);
         }
         }
 
 
-        $user = $this->dao->get(['uid' => $id, 'is_del' => 0]);
+        $user = $this->dao->get(['uid' => $id, 'is_del' => 0, 'status' => 1]);
 
 
         if (!$user || $user->uid != $tokenData['uid']) {
         if (!$user || $user->uid != $tokenData['uid']) {
             if (!request()->isCli()) CacheService::delete($md5Token);
             if (!request()->isCli()) CacheService::delete($md5Token);