Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Robert Peake

    (@robertpeake)

    Hi @andrewsmillen

    I see that you have a custom sidebar login form on the site.

    To display the reCaptcha on this login form, it needs to include this code:

    <?php do_action(‘login_form’) ?>

    This triggers a standard action in WordPress that invokes and displays all additional elements besides the username/password that have been added by plugins (such as the reCpatcha added by this plugin).

    Hope that helps!

    Best,
    Robert

    Plugin Author Robert Peake

    (@robertpeake)

    HI @andrewsmillen — did that help? Looks like the sidebar login still doesn’t have the captcha yet…

    Thread Starter andrewsmillen

    (@andrewsmillen)

    Hi Robert –?thanks for the quick reply. The client ended up taking the captcha off the login form entirely (moved it to the registration form where it makes more sense anyway). So I didn’t get to test your solution. Thanks for the help though!

    • This reply was modified 6 years, 11 months ago by andrewsmillen.
    Plugin Author Robert Peake

    (@robertpeake)

    Glad to hear you found a solution that is working for you.

    Hi Robert,
    I am getting the same issue as above. So I am calling the form then the captcha as follows:

    wp_login_form();
    do_action('login_form');

    But when trying to login, its redirecting me to the wp-login page with the error: Please check the ReCaptcha box.

    Many thanks
    Jason

    Plugin Author Robert Peake

    (@robertpeake)

    Hi @redsentence — I believe you just need:

    <?php do_action(‘login_form’) ?>

    perhaps wp_login_form() was creating a duplicate that couldn’t be processed?

    Hi Robert
    Thanks but when I remove that the form disappears, I only get the captcha box.
    Thanks!
    Jason

    Plugin Author Robert Peake

    (@robertpeake)

    Ah, right. Sorry. That makes sense. The do_action is to trigger the additional elements. You still need the form drawing function call.

    Is your form posting against the standard wp-admin/wp-login.php area? Or is it customised somehow?

    Hi Robert,
    I’ve created a custom login pop up, so not using the main wp-login

    Many thanks
    Jason

    Plugin Author Robert Peake

    (@robertpeake)

    If you are authenticating against somewhere other than wp-login.php, you will need to use the same hooks (in particular do_action('authenticate') to the back-end where you are processing the authentication to be able to invoke the processor for the reCaptcha.

    Hi Robert,
    I am using do_action(‘login_form’); but not showing form and recaptcha.

    • This reply was modified 6 years, 8 months ago by promith007.

    Any news on this?

    I have exactly the same issue

    Thanks!

    Plugin Author Robert Peake

    (@robertpeake)

    @davouid the plugin only officially supports the main WP login page and a WooCommerce customer page. However, if you would like to contribute well-tested code to support custom login pages, we would welcome a pull request here: https://github.com/cyberscribe/login-recaptcha

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘reCAPTCHA on wp_login_form()’ is closed to new replies.