From f57cf5ce80cde432e735199d20f258d9ae0deed5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=A1=E5=AE=85=E7=94=B7=28YznCMS=E5=AE=98=E6=96=B9=29?= <530765310@qq.com> Date: Thu, 19 Sep 2024 02:42:28 +0000 Subject: [PATCH] =?UTF-8?q?update=20application/common/library/Auth.php.?= =?UTF-8?q?=20=E6=AD=A4=E5=A4=84=E6=B2=A1=E6=9C=89=E7=94=A8return=20false;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/library/Auth.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/common/library/Auth.php b/application/common/library/Auth.php index f3ed90f6..17e95586 100644 --- a/application/common/library/Auth.php +++ b/application/common/library/Auth.php @@ -224,6 +224,7 @@ class Auth if ($user->loginfailure >= 10 && time() - $user->loginfailuretime < 86400) { $this->setError('Please try again after 1 day'); + return false; } if ($user->password != $this->getEncryptPassword($password, $user->salt)) {