skip to Main Content

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?

2

Answers


  1. 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 
    
    Login or Signup to reply.
  2. You can also use the MarkShust_DisableTwoFactorAuth extension: https://github.com/markshust/magento2-module-disabletwofactorauth. It will add the missing toggle to turn 2FA on or off from the admin.

    bin/magento config:set twofactorauth/general/enable 0
    bin/magento config:set twofactorauth/general/enable_for_api_token_generation 0
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search