Support » Plugin: All-In-One Security (AIOS) – Security and Firewall » Turn Off 2FA temporarily
8 months, 1 week ago
Do you have a php code snippet that can be used to turn off 2FA temporarily?
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:
There is no plugin name associated? iThemes Security uses:
Also, iThemes Security can be completely disabled using this:
Can All-In-One Security (AIOS) – Security and Firewall be completely disabled in wp-config.php?
Yes, below is right.
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.
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 for suggestion. I will create internal ticket to for it.
5 months, 2 weeks ago
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
It seems you have directly copied from the code preview. here the single quote to be used TWO_FACTOR_DISABLE as string.