MyBB Community Forums

Full Version: locked out of admin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Earlier I changed a parameter to two-factor authentication just for my admin section. So a few minutes ago when attempting to login, this screen popped up. Okay, no problem, I will wait to get the code. Well, fifteen minutes later, no code has arrived and now I am locked out of admin. I looked in gmail, including the spam folder. Nothing. And nothing arrived via text. 

I do have my email address set up correctly, etc. 

Help!

I figured it out on my own. Did a SQL query and solved the problem, then went back into admin and turned off the the feature.

Admin CP 2FA Bypass
To log into the Admin CP without using the Two-Factor Authentication code:

Enter your Username and Password and proceed,
Once you are prompted to enter an Authentication code, execute the following SQL query (change USER_ID to user ID of the account):
UPDATE mybb_adminsessions SET authenticated = 1 WHERE uid = USER_ID;
Note that MyBB ACP's 2FA relies on mobile devices and authenticator apps, not email: https://docs.mybb.com/1.8/administration/security/2fa/