Magento 2 Disable Two-Factor Authentication

Magento 2.4.0 come with Two-Factor authentication. Once you installed Magento 2.4.0 or latest you will be asked to setup Two-Factor Autentication.

magento 2

To Disable Two-Factor Authentication, edit file

vi app/etc/config.php

Find

Advertisement

        'Magento_TwoFactorAuth' => 1,

Replace with

        'Magento_TwoFactorAuth' => 0,

Run commands

php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f

Now you will be able to login to Magento Admin with out setting up Two-Factor autentication.

Add a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Advertisement