Sunday , June 16 2024
Home > Magento Tips & News > Magento 2 Tutorials > Store Settings > How to Disable 2FA in Magento 2.4 Using Command Lines

How to Disable 2FA in Magento 2.4 Using Command Lines

How to disable 2FA in Magento 2.4 using command lines

Magento 2.4 does not provide an option to disable two-factor authentication, however, you can do it by running one of the following command lines:

1. Method 1:

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

2. Method 2:

 php bin/magento msp:security:tfa:disable

3. Method 3:

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

Hope you can disable 2FA in Magento 2.4 after reading this blog. Also, visit our Magento tutorial series to learn more about Magento. Any questions are welcomed in the comment field below. 

Optimize Your Magento Store With Powerful Extensions

Looking for fast, efficient and well-coded extensions to build or optimize your Magento stores for sales boosting? Then visit Magezon website and grab necessary add-ons for yours today!

About Laura Cao

Laura Cao
Laura graduated from Foreign Trade University with a bachelor’s degree in Business English and is currently serving as a content marketer at Magezon. She indulges in reading and writing everything about Magento. In her spare time, gardening and hanging out with friends are her area of interest.

Check Also

how-to-change-magento-2-default-store-view-01

How to Change Magento 2 Default Store View

In this blog, we’ll guide you through how to change Magento 2 default store view …

Leave a Reply