in2code-de / invisiblerecaptcha

Invisible recaptcha for powermail 3.x
4 stars 9 forks source link

Fixed validation and added support for Powermail 8/TYPO3 10 #19

Open schoeppe opened 2 years ago

schoeppe commented 2 years ago

This pull request should repair HTML and client side validation (if enabled). I refactored the Google reCaptcha v3 integration so that the reCaptcha challenge is programmatically invoked after HTML and client side validation.

The new integration does not need the Powermail form id anymore so I also removed the Form.html template to keep things DRY.

The form id usage didn't work anymore for Powermail 8/TYPO3 10 because of the pages -> page, forms -> form renaming anyway - so as a side effect the new implementation is compatible with Powermail 8/TYPO3 10.

This should solve Issues #3, #14, #15, #17 and probably #16.