lizhen_gitee пре 8 месеци
родитељ
комит
31b47a29dd
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      application/common/library/Auth.php

+ 3 - 3
application/common/library/Auth.php

@@ -103,7 +103,7 @@ class Auth
                 $this->setError('Account not exist');
                 return false;
             }
-            if ($user['status'] != 'normal') {
+            if ($user['status'] != 1) {
                 $this->setError('Account is locked');
                 return false;
             }
@@ -171,7 +171,7 @@ class Auth
             'logintime' => $time,
             'loginip'   => $ip,
             'prevtime'  => $time,
-            'status'    => 'normal'
+            'status'    => 1
         ]);
         $params['password'] = $this->getEncryptPassword($password, $params['salt']);
         $params = array_merge($params, $extend);
@@ -217,7 +217,7 @@ class Auth
             return false;
         }
 
-        if ($user->status != 'normal') {
+        if ($user->status != 1) {
             $this->setError('Account is locked');
             return false;
         }