Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: reCaptcha rule definition #12

Open
kristiyanst98 opened this issue Jul 10, 2023 · 0 comments
Open

[Bug]: reCaptcha rule definition #12

kristiyanst98 opened this issue Jul 10, 2023 · 0 comments

Comments

@kristiyanst98
Copy link

What happened?

I added the captcha components to my login/register pages but I can currently create a new profile or log into an existing one without the need to verify the captcha. There is a step in the documentation( https://tastyigniter.com/docs/extensions/frontend ) which states:

Add recaptcha to your rules

$validator = Validator::make(request()->all(), [
...
'g-recaptcha-response' => 'recaptcha',
]);

Print form errors

$errors = $validator->errors();

I am unable to find the correct place to add this piece. Would appreciate any ideas.

What did you expect to happen?

Couldn’t find the existing request made by the Validator in order to add the reCaptcha element validation

Version

3.x

What browser are you seeing the problem on?

No response

Relevant log output

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant