Problem/Motivation

The length of the "Error message" field on the page /admin/config/people/captcha/recaptcha-v3 is limited to 128 characters.
This doesn't allow a more explicit error message.
(cfr. https://www.drupal.org/project/drupal/issues/3331028)

Steps to reproduce

Go to the page, and attempt to enter an error message longer than 128 characters.

Proposed resolution

Modify the form to use a textarea element instead of a textfield.

User interface changes

Use a textarea element instead of a textfield, in order to allow longer error messages.

API changes

None.

Data model changes

None.

Command icon 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

nick dewitte created an issue. See original summary.

nick dewitte’s picture

I've created a merge request for this.
Given the simplicity of the change, I don't think this has any impact on backwards compatibility.

nick dewitte’s picture

Status: Active » Needs review
vinodhini.e’s picture

@nick dewitte,

Steps to Reproduce and Test the Fix
Installed the module on Drupal 11.2.2.
Replicated the issue where the error message is restricted to 128 characters.
Applied the patch from Merge Request !35.

Re-tested by adding an error message longer than 128 characters. and its working fine.

Thanks.

dench0’s picture

Status: Needs review » Reviewed & tested by the community

  • dench0 committed da7c6c62 on 2.0.x authored by nick dewitte
    feat: #3538016 Don't limit error message length
    
    By: nick dewitte
    By:...
dench0’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.