Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

[Support request] Enable Auto Login After Registration fails if reCaptcha i activated

by

Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Troubleshooting › Enable Auto Login After Registration fails if reCaptcha i activated

Tagged: recaptcha failed, registration fail, registration redirection

  • This topic has 4 replies, 3 voices, and was last updated 3 years, 6 months ago by admin.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • November 3, 2021 at 8:50 am #83871
    danielfletcher
    Participant

    When I have the ‘Enable Auto Login After Registration’ option turned on, and the reCaptcha is active on the login form, when a user submits the registration form a new user is created in the back end but the following error message is displayed on the frontend: Captcha verification failed. Go back and try again.

    It looks like the emember_recaptcha_verify() returns false in the emember_init_frontend() function (eMember_init.php file).

    Can you advise, please?

    Many thanks

    November 3, 2021 at 4:01 pm #83873
    wzp
    Moderator

    I’m not surprised, that it happened. The reCaptcha verification checks for the presence of a valid “g-recaptcha-response” which will always be an invalid value; because the member was never asked to submit a reCaptcha form. This is something the developer will have to take care of. Would you rather have the new member perform the reCaptcha test, or just bypass it?

    November 3, 2021 at 11:51 pm #83874
    admin
    Keymaster

    You can’t enable captcha for the login form and at the same time enable “auto-login”. The auto login basically auto submits the information (the same way a bot does). The captcha is there to prevent that auto-submission. Pick one of those options.

    November 4, 2021 at 7:08 am #83879
    danielfletcher
    Participant

    Thanks for your quick reply.
    Is there a reason a user is redirected to the login form after registering instead of logging the user in using the WP login functions? I understand the login captcha fails because the login form is being submitted automatically but I’m not sure why the user is being redirected to the login page in the first place instead of just automatically logging them in after registration.

    Many thanks

    November 5, 2021 at 12:43 am #83882
    admin
    Keymaster

    Our plugin has a separate login process (we don’t use WP’s login). Our plugin doesn’t need the WP user entries. We prefer not to modify or add data to a core WordPress user’s database table. So WP eMember uses it’s own database table to store membership details. Most of our customers who create a membership site using our plugin prefer this clean approach where your core WordPress user database table doesn’t get cluttered.

    We don’t have a hotwiring login system. We haven’t done that intentionally because we don’t want to have to worry about the security side of things of that hotwiring process. You may need to look at an alternative plugin which will be more suitable for the project that you are currently working on (different membership plugin’s work slightly differently).

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ