laravel-recaptchav3 icon indicating copy to clipboard operation
laravel-recaptchav3 copied to clipboard

verify method returns false

Open bnp-aswin opened this issue 1 year ago • 4 comments

use Lunaweb\RecaptchaV3\Facades\RecaptchaV3; // RecaptchaV3::verify($token, $action) $score = RecaptchaV3::verify($request->get('g-recaptcha-response'), 'register') if($score > 0.7) { // go } elseif($score > 0.3) { // require additional email verification } else { return abort(400, 'You are most likely a bot'); }

above code always returns false

bnp-aswin avatar Mar 30 '23 06:03 bnp-aswin

I have the same problem:

image

NeftaliAcosta avatar May 24 '23 18:05 NeftaliAcosta

Any update on this. I am getting the same problem

patkelly174 avatar Jul 18 '23 21:07 patkelly174

same

rahmap avatar Nov 06 '23 05:11 rahmap

I had the same issue and it was resolved for me by publishing the config using the command:

php artisan vendor:publish --provider="Lunaweb\RecaptchaV3\Providers\RecaptchaV3ServiceProvider"

In the documentation it says the above command is optional, but in my view it is required, as without it we do get this error.

akulmehta avatar May 01 '24 01:05 akulmehta