laravel-recaptchav3
laravel-recaptchav3 copied to clipboard
verify method returns false
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
I have the same problem:
Any update on this. I am getting the same problem
same
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.