albertcht / invisible-recaptcha

An invisible reCAPTCHA package for Laravel, Lumen, CI or native PHP.
MIT License
603 stars 163 forks source link

verifyRequest is always returning false #100

Closed neokyuubi closed 5 years ago

neokyuubi commented 5 years ago

Hello,

Can i use InvisibleReCaptcha::verifyRequest as an Extra step of Checking ?

And of course this works just fine.

$validate = Validator::make(Input::all(),
[
    'g-recaptcha-response' => 'required|captcha',
]);

i was just wondering if verifyRequest can be helpful if i want to check that the gCaptcha is coming from one of the domains that i filled when registering the keys for the invisible captcha. I

I'm using Laravel 5.5, but InvisibleReCaptcha::verifyRequest(\request) in my controller is always returning false.

albertcht commented 5 years ago

You may need to collect other info by yourself because it only calls google's api return the response for you.