Updated Limit Login setup
This commit is contained in:
parent
6dafa7f1ee
commit
9d6c90e9cd
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user