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

moved recaptcha execute into event listener function on form submit #296

Merged

Conversation

thbarrons
Copy link
Contributor

Moved the execute to on form submit action. This should fix invalid captcha problems if user takes more than 2 minutes to fill out forms. Note that google recommends this also...

Note: reCAPTCHA tokens expire after two minutes. If you're protecting an action with reCAPTCHA, make sure to call execute when the user takes the action rather than on page load.

@JulianMartos
Copy link

When will this pull request be merged? Any Aprox date?

@Andrew-Chen-Wang Andrew-Chen-Wang merged commit 1789760 into django-recaptcha:main Feb 14, 2023
@Andrew-Chen-Wang
Copy link
Contributor

thanks!

@Stormheg
Copy link
Contributor

FWIW; this is now causing issues for people with custom form submit handlers. See #348.

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

Successfully merging this pull request may close these issues.

None yet

4 participants