Problem/Motivation
According to the FAQ, it's allowed to hide the reCAPTCHA badge as long as you include the reCAPTCHA branding yourself.
However, the module doesn't support this.
It is not too difficult to alter a form so that this is achieved. Basically, you only need to add a bit of CSS and a text to the form.
However, it would be nice if the module would provide an option for this so that no custom code is required.
Proposed resolution
On an abstract level, I would implement it as follows:
- Add a checkbox to toggle the visibility of the badge.
- Also add a (formatted) text field where you can specify the branding text. This should have the default value shown in the FAQ.
- This text should be appended to the end of the protected form and the badge should be hidden. (If configured to hide the badge)
Remaining tasks
Actually implement this feature and potentially discuss the details of how it should be implemented.
User interface changes
The configuration form would need to be adjusted. Also, the captcha output on the protected forms could change for the end-user.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3370065-4.patch | 3.69 KB | grcwolf |
| #2 | 3370065-2.patch | 3.47 KB | grcwolf |
Issue fork recaptcha_v3-3370065
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
Comment #2
grcwolfI've created a simple patch for the 2.0.0 branch that would achieve this.
It seems to works but more extensive testing would be required. The labels/descriptions could probably also be better.
I decided against making the branding text configurable as Google seems to want/require this specific text.
This isn't a polished implementation of this feature but I hope it provides a good base to work from.
Comment #3
grcwolfComment #4
grcwolfI noticed that I forgot to add my css file to the patch.
That's the only difference in this patch
Comment #5
i-trokhanenkoComment #8
dench0Comment #10
dench0