Closed (outdated)
Project:
CAPTCHA
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
15 Nov 2014 at 04:54 UTC
Updated:
28 Jul 2025 at 09:31 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
codesidekick commentedAttached is a patch with the global override variable.
If you'd like to disable CAPTCHA on your environment you can simply use:
in your settings.php file (or local.settings.inc file) and it will disable CAPTCHA for the given environment allowing you to run automated tests.
Note:
The captcha widget will still be displayed (useful for theming and assertions) however the validation won't take place (you can enter any or no value).
Comment #2
codesidekick commentedComment #3
podarokCommited
Good to have a small documentation update related to this, Please do that in follow-up
Comment #5
johnennew commentedI have found that this is not sufficient and had to add the following additional check to prevent the captcha appearing because filling in the field is sometimes still required.
Comment #6
johnennew commentedPlease find a better patch including the requested documentation included as well.
Comment #7
dineshw commentedComment #8
Ashlesha commentedComment #9
dineshw commentedComment #11
jaykandariCreated a patch inspired from previous patches in this thread. Instead of skipping the whole captcha, we can allow the user to skip certain forms.
Use case: When the user wants to disable captcha on certain forms and to avoid manual deleting & recreating captcha points from the configuration page.
A form can be skipped from settings.php by adding following line.
Suggestions most welcome.
Kindly Review the patch. Thanks !!
Comment #13
seeni commented#1 worked for me thanks @codesidekick
Comment #14
rgnyldz commentedHow can we disable captcha for a specific form like register form in D8-D9 settings.local.php?
Comment #15
super_romeo commentedLike this:
$config['captcha.captcha_point.user_register_form']['status'] = FALSE;Comment #16
dahousecat commentedNone of the patches above apply.
There should be a
captcha.settingsfor just a globally enabled flag. This could then be overridden via local settings file.I've updated the schema, default settings, SettingsForm and captcha_form_alter to add this setting - see provided patch.
Once the patch is applied you can add
$config['captcha.settings']['captcha_enabled'] = FALSE;to your local settings file to override the config.Comment #17
anybodyDrupal 7 is EOL.