Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Troubleshooting › Enable Auto Login After Registration fails if reCaptcha i activated
- This topic has 4 replies, 3 voices, and was last updated 3 years ago by admin.
-
AuthorPosts
-
November 3, 2021 at 8:50 am #83871danielfletcherParticipant
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 #83873wzpModeratorI’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 #83874adminKeymasterYou 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 #83879danielfletcherParticipantThanks 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 #83882adminKeymasterOur 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).
-
AuthorPosts
- You must be logged in to reply to this topic.