|
|
@@ -216,7 +216,7 @@ class Auth |
|
|
|
if ($user->password != $this->getEncryptPassword($password, $user->salt)) { |
|
|
|
$loginError = $loginError?$loginError+1:1; |
|
|
|
Cookie::set($account,$loginError,60*5); |
|
|
|
$this->setError("登录错误".$loginError."次,5次后将被限制登录5分钟"); |
|
|
|
$this->setError('Password is incorrect'); |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|