Closed jonjie0317 closed 7 years ago
Am stuck here also. I have the same issue! Anyone can help?
Yah, I have also checked all the required info like the secret and the public key but still doesn't work, @slim12kg tell me your solution once you solved it. Many thanks!
I discovered that if am connected to my office network, i don't have the issue anymore but the error occurs when am connected to my mobile hotspot. I don't know why that occurs
I have this issue on firefox only, not on google chrome. Any idea?
Do you have proxy setup on firefox. That might be a problem
@slim12kg No I don't. I should to use another package.
Okay, so I just pushed a change that does two things:
Note that this comes with a config change, so in the recaptcha.php
config, add:
'options' => [
'curl_verify' => true,
],
as part of the other options
in there.
Let me know if that doesn't work.
Still doesn't work sir :( same error/bug.
Here's my recaptcha.php
:
return [
'public_key' => env('RECAPTCHA_PUBLIC_KEY', 'my_site_key'),
'private_key' => env('RECAPTCHA_PRIVATE_KEY', 'my_secret_key'),
'template' => '',
'driver' => 'curl',
'options' => [
'curl_timeout' => 1,
'curl_verify' => true,
],
'version' => 2,
. Or should I have to change my driver
? What should I do?
Here's my validation:
$this->validate($request, [
'username' => 'required',
'password' => 'required',
'g-recaptcha-response' => 'required|recaptcha',
]);
My view: register.blade.php
{!! Recaptcha::render() !!}
Can you check the logs and see if there was a curl error?
@greggilbert Sorry for this stupid question, but how can I check those logs? to see the error? I also change curl_timeout
to 5/10, as per other tickets, but still not working.
It's a Laravel setting. I believe the default is storage/logs/laravel-*.log
, but it depends on your config.
Theres no curl error sir :(
Did you turn on debug? Try to raise up the error reporting as much as possible. Look at all the logs, not just the Laravel ones. httpd or nginx, php-fpm, etc. - i need _something_to go on.
@greggilbert It worked sir, hahaha! yes! but not totally, 👍 I mean, If I put the {!! Recaptcha::render() !!}
at the top of all input
in the view, its working, but if I put it before the button or at the bottom of all input
s, the form submittion cant detect the recaptcha
. (If I put it before all input
s, its not good)
here is how to fix it
File: config/recaptcha.php
'driver' => 'native',
Nope, not for me. :( Tried both solutions, none foo them worked. Any more ideas?
here is how to fix it
File: config/recaptcha.php
'driver' => 'native',
This fixed the issue for me just now. I'm on Laravel 5.6 in prod.
I followed the installation and set up successfully, but when I tried it correctly (Check the "Im not a robot"), it always says, The g-recaptcha-response field is required. What happened to that?
Need Help guys. btw Im using Laravel 5.1
Heres my code
Form:
===================================================================
Validation