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