Hi @johnm243
Yes, Please add define(‘TWO_FACTOR_DISABLE’, true); in wp-config.php and try it wil disable 2FA.
When you want to enable again remove it or set false.
Thanks @hjogiupdraftplus. If I read this correctly, I add this to the wp-config.php in order to disable 2FA:
define(‘TWO_FACTOR_DISABLE’, true);
There is no plugin name associated? iThemes Security uses:
define('ITSEC_DISABLE_TWO_FACTOR', true);
Also, iThemes Security can be completely disabled using this:
define('ITSEC_DISABLE_MODULES', true);
Can All-In-One Security (AIOS) – Security and Firewall be completely disabled in wp-config.php?
Thanks again,
John
Hi @johnm243
Yes, below is right.
define(‘TWO_FACTOR_DISABLE’, true);
If you would like to deactivate the plugin you may go to wp-admin panle plugins list and deactivate the All in one security plugin.
Regards
Noted @hjogiupdraftplus, thanks very much!
Please consider a way to allow All-In-One Security (AIOS) – Security and Firewall to be completely disabled in wp-config.php.
Personally, I believe all plugins should allow this: it makes it very easy to find which plugin is causing problems with a website!
Thanks again,
John
@johnm243
Thanks for suggestion. I will create internal ticket to for it.
Regards
When I add that in wpconfig, no matter where I add it, the site goes down. Inaccessible.
I need it disabled because I am not getting the splash screen. I get my login and captcha, but then it tells me I did not enter the correct 2fa, without ever asking for it.
anyplace I put it I get this in the logs:
PHP Fatal error: Uncaught Error: Undefined constant “‘TWO_FACTOR_DISABLE’” in
Hi @core
It seems you have directly copied from the code preview. here the single quote to be used TWO_FACTOR_DISABLE as string.
define(‘TWO_FACTOR_DISABLE’, true);
Regards