Jump to content

Recaptcha v2 Invalid Response on Login


Recommended Posts

Posted

I configured recaptcha in Google for my domain. I copied the site key and secret key into Blesta Admin and enabled it on the Client Login for testing. When I try to login to the client area, I am able to complete the recaptcha challenge and it gives the green checkbox, however when I click login I get the error "The captcha entered was invalid. Please try again."

Blesta Version: 5.3.0

PHP Version: 7.4 (recommended php extensions are all installed)

Error URL: https://REDACTED/client/login

Screen Shot 2022-02-23 at 10.45.45 PM.png

Posted
On 2/24/2022 at 8:15 AM, okcpilot said:

Update: This is happening with the hCaptcha and internal captcha as well.

Is your web server doing any caching/proxying? If the page is cached, then CSRF and captcha's will not work correctly.

Posted
4 minutes ago, Paul said:

Is your web server doing any caching/proxying? If the page is cached, then CSRF and captcha's will not work correctly.

Yep! I was running the portal through Cloudflare and it was being cached. Turned it off and now everything works. Much appreciated!

Posted
10 minutes ago, okcpilot said:

Yep! I was running the portal through Cloudflare and it was being cached. Turned it off and now everything works. Much appreciated!

Good to hear! :) 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...