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

Captcha login #262

Open
CristianRod21 opened this issue Aug 29, 2020 · 3 comments
Open

Captcha login #262

CristianRod21 opened this issue Aug 29, 2020 · 3 comments

Comments

@CristianRod21
Copy link

Hello,

I was wondering if is it possible to add captcha validation to any other page besides registration. I look up the code for login-form.html.twig and it's doesn't extends from the base template for forms. I can add the g-recaptcha-response and it's show up the checkbox but it won't validate this field. It's seems to me it's related to the event onFormProcessed which is never called because the submission of the form is handle directly as a task. . I'm a little lost honestly, i would like to know if this behavior was a decision or it's more like a bug.

Thanks,
Christian

@rhukster
Copy link
Member

You can add captcha to any form: https://learn.getgrav.org/16/forms/forms/reference-form-actions#captcha

@CristianRod21
Copy link
Author

CristianRod21 commented Aug 30, 2020

First of all, thanks for your quick response. I did that. The only difference is that i defined the secret_key on the form plugin config. The captcha shows up on the login form, but it won't validate that it's checked, the login always pass through. I did the same thing for the register form and it works well, the issue is with the other forms from the login plugin.

@sektor12
Copy link

sektor12 commented Feb 9, 2024

I can confirm that the issue exists on my side as well. @CristianRod21 Have you got to solution?

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

3 participants