Jump to content

Question

Posted

i have activated the recaptcha in signup page, the captcha always return error .

the i'm no robot cpatcha is showing well, but every time the client validate the signup page he get a error about captcha .

we are using 4.0.0, captcha v2. any feedback or any tips to test .

after some investigation, we found the repatche response is

recaptcha validation invalid-json

 

1 answer to this question

Recommended Posts

  • 0
Posted

we have found the issue. allow_url_fopen  with https issue .

the fix is simple, we changed the method from post to curl . by chaning only this line of code

                        $recaptcha = new ReCaptcha(
                            $order_settings['recaptcha_shared_key'],
                            new \ReCaptcha\RequestMethod\CurlPost()
                        );

i encourage blesta to use the curl method instead of the post, as now some host block allow_url_fopen , also is rebust to connect to a https site by curl .

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...