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! :) 

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...