sandm 1 anno fa
parent
commit
99ba98093c
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/index/controller/Auth.php

+ 1 - 1
app/index/controller/Auth.php

@@ -37,7 +37,7 @@ class Auth extends BaseController {
             $captcha = $this->request["captcha"];
             $user = new UserApi($username, $pwd, $usertype);
             $userinfo = $user->getUserInfo();
-            if (!$userinfo || $userinfo["delete"] == 1) {
+            if (!$userinfo || (array_key_exists('delete',$userinfo) && $userinfo["delete"] == 1)) {
                 $msg = "用户不存在";
             } else if (!$user->checkPwd()) {
                 $login_fail = session('login_fail');