Default challenge value in config install is incorrect

Created on 28 April 2025, about 1 month ago

Problem/Motivation

Warning during initial setup:
Undefined array key 1 in Drupal\captcha\Element\Captcha::processCaptchaElement() (line 150 of modules/contrib/captcha/src/Element/Captcha.php)

Steps to reproduce

Install module
Configure action for user registration
Submit user-register form
See warning

Proposed resolution

The value for default_challenge is using a backslash instead of a forward-slash.
config/install/recaptcha_v3.settings.yml
- default_challenge: 'captcha\Math'
+ default_challenge: 'captcha/Math'

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bfuzze9898

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024