Open vaskomichal opened 1 year ago
yeah me too
for development environment it is showing only captcha and by pass. change the APP_ENV to production or disabled to false in config/captcha.php
I run into same issue and created a description for the problem with a suggestion for the solution: https://github.com/mewebstudio/captcha/issues/248 Pull Requests with the fix is open. You can review and comment it. Maybe then it can be merged faster?
Ok, so it's not just me....
add CAPTCHA_DISABLE=false to .env, or change APP_ENV to production, then add new lang to your locale with key captcha
you should use captcha_check() function to validate captcha. pass the submitted string to this function and get a boolean response.
captcha_check()
what can i use it? where can i use it?
captcha_check()
what can i use it? where can i use it?
captcha code in entered in an input of a form then will be submit. so you can use captcha_check() function in your controller to check the captcha code. for example if your input in blade has name of "captcha_input", in your controller you should use like this :
if (captcha_check($request->captcha_input) == false) { return back()->with('invalid-captcha','captcha is invalid'); }
I used code from documentation
`Session Mode: // [your site path]/Http/routes.php Route::any('captcha-test', function() { if (request()->getMethod() == 'POST') { $rules = ['captcha' => 'required|captcha']; $validator = validator()->make(request()->all(), $rules); if ($validator->fails()) { echo '
Incorrect!
'; } else { echo 'Matched :)
'; } }Validation is always successful regardless of the entered text.