laravel-google-captcha icon indicating copy to clipboard operation
laravel-google-captcha copied to clipboard

Captcha don't validate

Open Samuelbdesouza opened this issue 4 years ago • 6 comments

Hello, I followed all the steps in readme.md, but captcha validation is not running, could you help me or explain to me how validation works? I'm new to laravel, so I still don't understand some parts of the framework

Samuelbdesouza avatar Jan 13 '21 17:01 Samuelbdesouza

@Samuelbdesouza Can you please show your code or config? Or you can follow example repo here https://github.com/thinhbuzz/laravel-h-captcha-examples/tree/master/resources/views

thinhbuzz avatar Jan 15 '21 03:01 thinhbuzz

When validating it throws an error Call to undefined function post()

'g-recaptcha-response' => 'required|captcha',

kenkioko avatar Feb 25 '21 20:02 kenkioko

@kenkioko What version are you using laravel?

thinhbuzz avatar Feb 26 '21 04:02 thinhbuzz

https://github.com/thinhbuzz/laravel-google-captcha-examples/tree/laravel8 I have tried on version 8 and there is no error

thinhbuzz avatar Feb 26 '21 06:02 thinhbuzz

I have the same problem. Captcha started reporting a validation error

kamcw avatar Feb 17 '22 09:02 kamcw

I have a solution! The problem with validation occurs if google has blocked the service because it has not been used for too long. Need to generate new keys

kamcw avatar Feb 17 '22 10:02 kamcw