Problem/Motivation

I faced this problem in one my project so had a thought to share it with the commumity. This module was integrated and credentials were created a long time ago for one of Drupal project. The problem arised when we needed to add new domains to existing recaptcha credentials but no one had an idea that recaptcha keys were generated with which email account. We got no clues and had to create new recaptcha credentials with new email acccount.

I know this is human error and module has nothing to do with it. But Then, I thought I can atleast try something which can help peoples.

Steps to reproduce

  1. Enable recaptcha and it's dependent modules
  2. Go to /admin/config/people/captcha/recaptcha and you find there is nothing which can hint about email account used to create recaptcha keys.

Proposed resolution

We can add one optional field, where user can add Email address associated with recaptcha credentials just for reference purpose.

User interface changes

New "Email Address" field to existing configuration form.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Chandreshgiri Gauswami’s picture

Status: Patch (to be ported) » Needs review
FileSize
2.96 KB

Attaching the patch.

Chandreshgiri Gauswami’s picture

Assigned: Chandreshgiri Gauswami » Unassigned
Sandeep_k’s picture

FileSize
207.04 KB
212.79 KB

@Chandreshgiri Gauswami, Verified the patch 3412344-2.patch on Drupal version- 9.5.11 & 10.1.8-dev. The patch was applied successfully and looks good to me.
Testing Steps:

  • Enable recaptcha and its dependent modules.
  • Go to /admin/config/people/captcha/recaptcha- to reproduce this. Attached before result.
  • Download the shared patch and Apply.
  • Go to /admin/config/people/captcha/recaptcha- Reverify this.

Testing Results:
A new Email field is added there for user reference. RTBC++

Sandeep_k’s picture

Status: Needs review » Reviewed & tested by the community
Liam Morland’s picture

Version: 8.x-3.2 » 8.x-3.x-dev