|
@@ -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;
|
|
|
}
|