Browse Source

登录限制密码错误次数

yijia
nizongfeng 1 year ago
parent
commit
ee387485de
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      application/common/library/Auth.php

+ 1
- 1
application/common/library/Auth.php View File

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



Loading…
Cancel
Save