XF 2.1 Deactivate 2FA

Monahan

Member
My admin user log on is asking for "Please enter the verification code generated by the app on your phone." when i try to log into either the site or AdminCP

I use Google authenticator but I don't have an entry for my forum in there so I'm locked out. To be honest I don't even remember setting up 2FA for the site.

Is there any way I can deactivate the 2FA so I can get back in ?

I'm running XF2.1 and the Xenith 2 template

Fingers crossed someone knows the answer to this and thanks in advance

Monahan.
 
You will need to edit your src/config.php file and add the following:
PHP:
$config['enableTfa'] = false;
You will then be able to log in. You will then be able to disable 2FA for your account in the "Password and security" page of your account.

Once you have done that, you will be able to remove the line you added above and, ideally, re-add 2FA.

We'd strongly recommend admins enable 2FA for their accounts and potentially other admins.

FWIW we'd generally recommend using Authy rather than Google Authenticator. It provides various improvements including cloud storage and backup/restore to reduce the impact of losing your device or otherwise losing authentication data.
 
Top Bottom