• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 Forced two-step verification keeping me out of admin

#1
Hi, While trying to login to my admin account i am being forced to complete the two step verification. I have tried the email type but it isn't sending me the verification code. I have looked into setting an SMTP but, i can't get into the admin to change the settings. Any ideas?
 

Brogan

XenForo moderator
Staff member
#2
You can temporarily disable 2FA by adding this to the library/config.php file:

$config['enableTfa'] = false;

That should then enable you to regain access and disable it for your account - you may also need to check permissions to ensure it isn't being set there.

Don't forget to remove the line after you have done so.
 

Amin Sabet

Well-known member
#5
You can temporarily disable 2FA by adding this to the library/config.php file:

$config['enableTfa'] = false;

That should then enable you to regain access and disable it for your account - you may also need to check permissions to ensure it isn't being set there.

Don't forget to remove the line after you have done so.
Hi Brogan, this isn't working for me. I added the line, but still being prompted for TFA. Is there any other way to temporarily disable TFA?
 

Amin Sabet

Well-known member
#6
Nevermind, my mistake, it's working now. Must have needed some time for the settings to take effect. I had cleared cache, but must have missed something.