mirror of https://gitee.com/karson/fastadmin.git
parent
c74b9dc24a
commit
f57cf5ce80
|
|
@ -224,6 +224,7 @@ class Auth
|
||||||
|
|
||||||
if ($user->loginfailure >= 10 && time() - $user->loginfailuretime < 86400) {
|
if ($user->loginfailure >= 10 && time() - $user->loginfailuretime < 86400) {
|
||||||
$this->setError('Please try again after 1 day');
|
$this->setError('Please try again after 1 day');
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($user->password != $this->getEncryptPassword($password, $user->salt)) {
|
if ($user->password != $this->getEncryptPassword($password, $user->salt)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue