Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
People get confused adding a CAPTCHA on a contact form - see #2865967: Admin interface for CAPTCHA on contact forms is confusing.
We can fix it as follows:
- Delete captcha.captcha_point.contact_message_feedback_form.yml. The contact module does not define a matching default contact form, so this is really confusing.
- Enhance captcha_install to automatically create captcha points for contact forms similar to existing code for nodes.
See also #3005577: Create CAPTCHA points on demand not on install - could create on demand rather than on install.
Issue fork captcha-3005579
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
AnybodyComment #3
AnybodyComment #4
AnybodyComment #5
Anybodyhas been done in the MR.
@AdamPS: Should
captcha.captcha_point.contact_message_personal_form.yml
also be removed or does that one exist?All other things should indeed be done in #3005577: Create CAPTCHA points on demand not on install!
Comment #7
AdamPS CreditAttribution: AdamPS at AlbanyWeb commentedGreat thanks.
This one is fine and should stay - the "Personal contact form" always exists and cannot be deleted.
Comment #8
AnybodyThank you @AdamPS! Merged :)
Comment #10
AdamPS CreditAttribution: AdamPS at AlbanyWeb commentedGreat thanks