I inadvertently enabled 2fa without setting up an app on my device! So I’m locked out of my admin console. Is there a way to disable 2fa in PhpMyAdmin?
Hi, add define(‘TWO_FACTOR_DISABLE’, true); in wp-config.php file. This will disable 2FA. When you want to enable 2FA again remove the code or set it to false.
I’ve emptied the cache in my browser(s). I’m running the lates WP. I get an alert at the top of the login window: “TWO_FACTOR_DISABLE’ – assumed ‘‘TWO_FACTOR_DISABLE’’ (this will throw an Error in a future version of PHP) in /volume1/web/chewit/wp-config.php on line 93”
I the relevant (I think) plugins i’m running are wp-fastest-cache and health-check. I’m not sure what a CDN is, I googled it, and my guess in no, I’m not.
Thank you for providing more information. I think your best option is to try and reset the plugin. This will help with the issue you are having now with the 2FA setting. Please check the following documentation.
I tried some of this previously. But you loose me at the middle of step 6. You tell me how to click Edit. But you don’t tell me how to search in there. I’ve tried a few things in “Edit” but I can’t find anything. Can you please elaborate on what go do after I click Edit.
Attached are the remaining entries that I don’t know how to search into:
GRRRRR!
This reply was modified 1 year, 8 months ago by wowmomcs. Reason: Why can't I just upload an image!?
My apologies if my instructions are not 100% correct. I will try and edit them so they make more sense. I am also glad you were able to fix your issue. Enjoy the plugin.
Kind regards.
This reply was modified 1 year, 8 months ago by mbrsolution.
Viewing 11 replies - 1 through 11 (of 11 total)
The topic ‘Disable 2fa without admin access – locked out’ is closed to new replies.