Closed (fixed)
Project:
reCAPTCHA v3
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
16 Aug 2023 at 15:30 UTC
Updated:
1 Sep 2023 at 08:14 UTC
Jump to comment: Most recent
Stemming from https://www.drupal.org/project/captcha/issues/3377498, recaptcha_v3_post_captcha_element_process() no longer unsets the CAPTCHA description correctly, causing it to show when using recaptcha_v3.
* Enable recaptcha_v3
* Observe CAPTCHA description and title is shown
* Use a hook_preprocess_captcha to unset the title and description
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 #3
alexj12 commentedThis is a relatively quick fix. In my case I haven't had an issue with hook precedence but it _could_ be an issue.
Comment #4
alexj12 commentedComment #5
dench0@Alexj12
I can't reproduce it. And now the description is hidden by overwriting the template file:
https://git.drupalcode.org/project/recaptcha_v3/-/blob/2.0.x/templates/c...
https://git.drupalcode.org/project/captcha/-/blob/2.x/templates/captcha....
You need to investigate the issue on your side, but it looks like the module works as it should.
Comment #6
alexj12 commentedHi @dench0,
This is on 8.x-1.8, with any version of CAPTCHA from 8.x-1.11 (inclusive).
I don't believe the 2.0.x branch is affected, but we can't use an alpha version of a module.
Thanks
Comment #7
dench0I apologize, I wasn't too attentive and thought the problem was occurring on recaptcha v3 2.x.
Then for the BC we need to leave the old code as well or increase the captcha module version in the
composer.json.Comment #8
dench0Comment #10
dench0Comment #11
alexj12 commentedThanks for this @dench0, super quick!