Disable Captcha CLI for Magento 2
rjds/magento2-module-captcha-disable
Adds CLI commands to toggle all CAPTCHA and reCAPTCHA settings on or off, with an option to also disable or re-enable Magento's two-factor authentication module.
Build Tests
Code Quality
Tested on Magento 2.4.9
Recent Test History
Each release is tested against the latest Magento version at that time.
Top Contributors
View LeaderboardShare This Module's Status
README
Loaded from GitHubRJDS Disable Captcha
A small Magento 2 module to toggle all captcha and reCAPTCHA settings with CLI commands.
Requirements
- PHP
>=8.1 - Magento Open Source / Adobe Commerce
2.4.4up to2.4.8
Installation
Install via Composer:
composer require rjds/magento2-module-captcha-disable
Then enable the module and run setup:
bin/magento module:enable RJDS_DisableCaptcha
bin/magento setup:upgrade
bin/magento cache:flush
Usage
Disable all captcha/reCAPTCHA settings:
bin/magento rjds:captcha:disable
Disable captcha and also disable Magento 2FA module entirely:
bin/magento rjds:captcha:disable --disable-2fa-module
Enable captcha/reCAPTCHA settings again (using default invisible mode):
bin/magento rjds:captcha:enable
Enable captcha and also re-enable Magento 2FA module:
bin/magento rjds:captcha:enable --enable-2fa-module
Production safety
In production mode, both commands ask for confirmation first.
Use --force to skip the confirmation prompt:
bin/magento rjds:captcha:disable --force
bin/magento rjds:captcha:enable --force
Notes
- Installing this module does not change captcha configuration by itself.
- Configuration is only changed when running the CLI commands.
This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.