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

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

schoeppe
Copy link

@schoeppe schoeppe commented Jan 3, 2022

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.

Deferred scripts should already be parsed when DomContnetLoaded gets fired.
The form id is no longer needed
Trigger the form submit (explicitely by clicking teh button again) after the gcaptcha response value
has been set.
Despite being a known problem it only started to appear after an upgrade to PHP 7.4.
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.

1 participant