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