Search code examples
magentomagento2

Magento 2.4.2- How to disable two factor authentication?


I just installed Magento 2.4.2 on my website. However, at the admin panel, I can see that 2FA is enabled by default. How can I disable 2FA in Magento and login to my admin panel?


Solution

  • You can disable this via the command line:

    bin/magento config:set twofactorauth/general/enable 0
    bin/magento cache:flush
    

    alternatively you can disable the module altogether:

    bin/magento module:disable Magento_TwoFactorAuth
    bin/magento cache:flush