django / djangoproject.com

Source code to djangoproject.com
https://www.djangoproject.com/
BSD 3-Clause "New" or "Revised" License
1.86k stars 938 forks source link

Upgraded django-recaptcha to 4.0.0 #1450

Closed sarahboyce closed 6 months ago

sarahboyce commented 6 months ago

After this PR: https://github.com/django-recaptcha/django-recaptcha/pull/296 Recapture is no longer being validated on page load and instead on form submit. As we also overwrote the form submit, we don't get the token value. So I think we need to call it ourselves

On the fundraising page right now you can see the calls to recapture on page load being console.logged

This was an issue identified when deploying: https://github.com/django/djangoproject.com/pull/1440

felixxm commented 6 months ago

OK, let's try it :crossed_fingers: