contributte / reCAPTCHA

:bangbang: Google reCAPTCHA (security) for Nette Framework \ Forms
https://contributte.org/packages/contributte/reCAPTCHA.html
MIT License
41 stars 28 forks source link

resolve reCaptcha on submit to prevent timeout #45

Closed xpavp03 closed 3 years ago

xpavp03 commented 3 years ago

Documentation warns against resolving reCaptcha on page load: https://developers.google.com/recaptcha/docs/v3

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.

My modification does just that.

f3l1x commented 3 years ago

Thank you.