From 9d6c90e9cd65fb24ea6f8c03a3d387400e01274e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=BCnther?= Date: Tue, 27 Feb 2024 11:57:38 +0100 Subject: [PATCH] Updated Limit Login setup --- modules/security/classes/Security.class.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/modules/security/classes/Security.class.php b/modules/security/classes/Security.class.php index 13359e7..c4973dc 100644 --- a/modules/security/classes/Security.class.php +++ b/modules/security/classes/Security.class.php @@ -38,7 +38,7 @@ class Security enable_option_secure_include_dir(); enable_option_prohibit_bot_access(); enable_option_block_directory_listing(); - + self::resetLimitLoginAttempts(); delete_option('whl_page'); } @@ -150,4 +150,16 @@ class Security return $result === null; } + + public static function resetLimitLoginAttempts() { + update_option('kompass_limit_login_lockout_duration', 900); + update_option('kompass_limit_login_allowed_retries', 3); + update_option('kompass_limit_login_allowed_lockouts', 3); + update_option('kompass_password_minimal_strength', 3); + update_option('kompass_limit_login_client_type', 'REMOTE_ADDR'); + update_option('kompass_limit_login_long_duration', 86400); + update_option('kompass_limit_login_lockout_notify', ['email']); + update_option('kompass_limit_login_notify_email_after', 3); + update_option('kompass_limit_login_cookies',0); + } } \ No newline at end of file