Magento 2: Disabling 2 Factor Auth

Published by John on July 29, 2020 Under Magento

Recently, while installing Magento 2.4 on a staging website, I ran into a bit of an issue. As soon as I logged in, it prompted me to setup and then use Two Factor Auth.

While this is great for a production environment and awesome to see Magento taking security seriously, it presents some problems on my staging website. Primarily, that I purposely block emails.

Fortunately, to turn off two factor auth, so that you can install an SMTP plugin first or otherwise access the Magento Backend without setting up Two Factor Authentication is actually fairly simple.

First Disable the Two Factor Authentication Module:

bin/magento module:disable Magento_TwoFactorAuth

Next, clean the cache:

bin/magento cache:clean

You should now be able to login without using two factor authentication.

Of course, you should likely turn this back on for a production website!

No Comments |

Add a Comment