MyBB Community Forums
locked out of admin - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: locked out of admin (/thread-229432.html)



locked out of admin - prouddaughter - 2020-09-16

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;


RE: locked out of admin - Devilshakerz - 2020-09-17

Note that MyBB ACP's 2FA relies on mobile devices and authenticator apps, not email: https://docs.mybb.com/1.8/administration/security/2fa/