Settings Break `wp_login_form()`
-
I have a
wp_login_form()
on my website. Whenever the the “Login Captcha” is enabled in the Brute Force section, the captcha does not show up forwp_login_form()
and will always return a failure. Whenever this feature is disabled the form works as expected and allows users to log in.https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/
-
Hi, do you have all three Captcha settings enabled? If you have and you receive the above error message, can you disable all your other plugins except this one. Then carry out another test?
Thank you
My Settings for Brute Force “Login Captcha” tab look like this:
Enable Captcha On Login Page: Enabled
Enable Captcha On Custom Login Form: Disabled
Enable Captcha On Lost Password Page: DisabledThe custom login form looks like this:
wp_login_form( array( 'remember' => false, 'label_log_in' => 'Login', 'redirect' => home_url(), ) );
I disabled all my plugins and it stilled denied me logins – When I disabled the only enabled setting ( as listed above ) it let me log in. The theme is a custom theme and there are no other login hooks.
Here’s an export of my settings with the disabled login captcha:
{"aiowps_remove_wp_generator_meta_info":"","aiowps_prevent_hotlinking":"","aiowps_enable_login_lockdown":"1","aiowps_allow_unlock_requests":"1","aiowps_max_login_attempts":12,"aiowps_retry_time_period":5,"aiowps_lockout_time_length":60,"aiowps_set_generic_login_msg":"","aiowps_enable_email_notify":"","aiowps_email_address":"handle@domain.com","aiowps_enable_forced_logout":"1","aiowps_logout_time_period":360,"aiowps_enable_invalid_username_lockdown":"","aiowps_unlock_request_secret_key":"2zj8q166pmbfrn3ax0cx","aiowps_enable_whitelisting":"","aiowps_allowed_ip_addresses":"","aiowps_enable_login_captcha":"","aiowps_enable_custom_login_captcha":"","aiowps_captcha_secret_key":"hw14z0p01jrcsb9du8ko","aiowps_enable_manual_registration_approval":"","aiowps_enable_registration_page_captcha":"1","aiowps_enable_random_prefix":"","aiowps_enable_automated_backups":"","aiowps_db_backup_frequency":"4","aiowps_db_backup_interval":"2","aiowps_backup_files_stored":"2","aiowps_send_backup_email_address":"","aiowps_backup_email_address":"handle@domain.com","aiowps_disable_file_editing":"1","aiowps_prevent_default_wp_file_access":"","aiowps_system_log_file":"error_log","aiowps_enable_blacklisting":"","aiowps_banned_ip_addresses":"","aiowps_enable_basic_firewall":"","aiowps_enable_pingback_firewall":"","aiowps_block_debug_log_file_access":"","aiowps_disable_index_views":"","aiowps_disable_trace_and_track":"","aiowps_forbid_proxy_comments":"","aiowps_deny_bad_query_strings":"","aiowps_advanced_char_string_filter":"","aiowps_enable_5g_firewall":"","aiowps_enable_custom_rules":"","aiowps_custom_rules":"","aiowps_enable_404_logging":"","aiowps_enable_404_IP_lockout":"","aiowps_404_lockout_time_length":"60","aiowps_404_lock_redirect_url":"http:\/\/127.0.0.1","aiowps_enable_rename_login_page":"","aiowps_enable_login_honeypot":"1","aiowps_enable_brute_force_attack_prevention":"","aiowps_brute_force_secret_word":"","aiowps_cookie_brute_test":"","aiowps_cookie_based_brute_force_redirect_url":"http:\/\/127.0.0.1","aiowps_brute_force_attack_prevention_pw_protected_exception":"","aiowps_brute_force_attack_prevention_ajax_exception":"","aiowps_site_lockout":"","aiowps_site_lockout_msg":"","aiowps_enable_spambot_blocking":"","aiowps_enable_comment_captcha":"","aiowps_enable_automated_fcd_scan":"","aiowps_fcd_scan_frequency":"4","aiowps_fcd_scan_interval":"2","aiowps_fcd_exclude_filetypes":"","aiowps_fcd_exclude_files":"","aiowps_send_fcd_scan_email":"","aiowps_fcd_scan_email_address":"handle@domain.com","aiowps_fcds_change_detected":false,"aiowps_copy_protection":"","aiowps_prevent_site_display_inside_frame":"1","aiowps_enable_lost_password_captcha":"","aiowps_block_fake_googlebots":"1","aiowps_enable_debug":"","aiowps_enable_autoblock_spam_ip":"","aiowps_spam_ip_min_comments_block":"","aiowps_prevent_users_enumeration":"","aiowps_disable_xmlrpc_pingback_methods":"","aiowps_enable_6g_firewall":""}
Can you try the following.
Enable Captcha On Login Page: Disabled
Enable Captcha On Custom Login Form: Enabled
Enable Captcha On Lost Password Page: DisabledThank you
I’ve tried the suggested settings. It does not show the Captcha Form ( as the description suggests ) on the custom login but it does allow me to login.
I should have clarified a bit earlier, at any point I cannot log in through the custom form I can log in through
wp-admin
so this issue only appears to affect thewp_login_form()
.We’re currently running PHP 5.3.3
I’ve also replicated this issue on the Twenty Fifteen theme by pasting the above
wp_login_form()
code.Hi, is the following thread somewhat related to your current issue?
All the failed attempts were tried with usernames and not email addresses. I can test/ look into this issue further in 5 hours.
Looks like the newest version of AiOWPS (4.1.5) fixed the captcha issue. Thanks for the support!
I am glad to hear 🙂
Enjoy the plugin.
- The topic ‘Settings Break `wp_login_form()`’ is closed to new replies.