Add optional CAPTCHA support to the contact form recipe

Created on 3 November 2024, 8 months ago

Problem/Motivation

In some forms, we might want site owners to add a CAPTCHA. But we don't want them by default - they are an invasive obstacle that slows down the user experience.

Proposed resolution

  • Add the Friendly CAPTCHA module to the drupal_cms_anti_spam recipe, and install it, but disable all CAPTCHA points by default using config action wildcards. This means that a Drupal CMS site will have CAPTCHA capabilities available by default.
  • In the contact form recipe, add a CAPTCHA point entity for the contact form that is also disabled by default. Define an input in the recipe that allows the person applying the recipe to enable, or disable, the CAPTCHA point (this should already be possible - whatever they input could be sent directly to the CAPTCHA point's setStatus() method, which is exposed as a config action).
✨ Feature request
Status

Active

Component

Track: Contact form

Created by

πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024