|
@@ -214,7 +214,7 @@ class Auth
|
|
|
$field = Validate::is($account, 'email') ? 'email' : (Validate::regex($account, '/^1\d{10}$/') ? 'mobile' : 'username');
|
|
|
$user = User::get([$field => $account]);
|
|
|
if (!$user) {
|
|
|
- $this->setError('Account is incorrect');
|
|
|
+ $this->setError('账户不正确');
|
|
|
return false;
|
|
|
}
|
|
|
|
|
@@ -223,7 +223,7 @@ class Auth
|
|
|
return false;
|
|
|
}
|
|
|
if ($user->password != $this->getEncryptPassword($password, $user->salt)) {
|
|
|
- $this->setError('Password is incorrect');
|
|
|
+ $this->setError('密码不正确');
|
|
|
return false;
|
|
|
}
|
|
|
|
|
@@ -283,7 +283,7 @@ class Auth
|
|
|
}
|
|
|
return true;
|
|
|
} else {
|
|
|
- $this->setError('Password is incorrect');
|
|
|
+ $this->setError('密码不正确');
|
|
|
return false;
|
|
|
}
|
|
|
}
|