greggilbert / recaptcha

[ABANDONED] reCAPTCHA Validator for Laravel 5
MIT License
714 stars 196 forks source link

Recaptcha not validating #84

Closed sahilsharma011 closed 8 years ago

sahilsharma011 commented 9 years ago

I have followed each and every step as it was suggested in the docs, I typed in the correct keys in correct places and in the starting days it was working fine. But after some days it is not validating the user and it is saying that user is not a human.

pflirae commented 9 years ago

I have a similar situation, I have to enter more that 4 times the captach to finaly and "magically" be able to login.

jeffochoa commented 9 years ago

any solution for this ? I'm facing the same issue

greggilbert commented 9 years ago

Hmm.. I'd need a bit more information about the situation. Can you tell if the request is going out to Recaptcha and coming back invalid, or is it failing earlier? Are your keys correct? How can I reproduce this issue?

jeffochoa commented 9 years ago

apparently the problem is the recaptcha validation rule. In the front everything works just fine, but when I submit the form, the "recaptcha" validation throws the same error over and over

pflirae commented 9 years ago

After doing some research on this problem I have been able to verify that the root cause is a timeout condition when calling the verification site using curl. To solve it I have changed the default time out value from 1 to 2 seconds on the config/recaptcha.php file, and now it is working fine. Will continue monitoring this issue for a couple of days to confirm that this is the solution.

KalinKanev commented 9 years ago

I can confirm the timeout issue. Have lost couple of hours trying to cope with this. Big thanks !

pflirae commented 9 years ago

Since my last comment, recaptcha has been working without problems, so the problem was the timeout and is solved increasing it to 2 seconds. From my perspective tha problem is solved.

KalinKanev commented 9 years ago

Indeed but I think more informative error about the timeout is crucial here.

nasirkhan commented 8 years ago

faced the similar situation. it was working properly and today while i was building a new form it did not work there. then i checked the previous forms and none of these were working at all. form frontend shows that recaptcha is validated, but server response shows that i am not a human!

zek commented 8 years ago

Same here. It works good in my local env but doesn't work in production.

zek commented 8 years ago

I think CURL can cause that.

almunnings commented 8 years ago

Try upping the curl timeout? On 24 Sep 2015 8:38 pm, "Talha Zekeriya Durmuş" notifications@github.com wrote:

I think CURL can cause that.

— Reply to this email directly or view it on GitHub https://github.com/greggilbert/recaptcha/issues/84#issuecomment-142887727 .

zek commented 8 years ago

Changing driver to native from CURL is works.

Also I don't know how but just solved it for CURL.

When I tried to work with CURL it wanted me to add something in php.ini after that It worked.

greggilbert commented 8 years ago

Okay, so it's a curl and/or timeout issue. Closing.