From 732c23256840b84124b14a718cea31e4adfd5c22 Mon Sep 17 00:00:00 2001 From: Jan Kristinus Date: Fri, 8 Mar 2024 10:36:32 +0100 Subject: [PATCH] =?UTF-8?q?login=20tries=20wurde=20nicht=20zur=C3=BCckgese?= =?UTF-8?q?tzt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/auth/lib/ycom_auth.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/auth/lib/ycom_auth.php b/plugins/auth/lib/ycom_auth.php index 9bb4875..b901ecb 100644 --- a/plugins/auth/lib/ycom_auth.php +++ b/plugins/auth/lib/ycom_auth.php @@ -223,7 +223,9 @@ public static function login(array $params): int || ('' != $params['loginPassword'] && self::checkPassword($params['loginPassword'], $loginUser->getId())) ) { $me = $loginUser; - $me->setValue('last_login_time', rex_sql::datetime(time())); + $me + ->setValue('last_login_time', rex_sql::datetime(time())) + ->setValue('login_tries', 0); $me = rex_extension::registerPoint(new rex_extension_point('YCOM_AUTH_LOGIN_SUCCESS', $me, [])); // session fixation