Magento 2: How to disable Two-Factor Authentication

Magento 2 Two-Factor Authentication (2FA) improves security by requiring two-step authentication to access the Magento Admin UI from all devices. The latest release, Magento 2.4 enables two-factor authentication by default.

Hence, 2-factor authentication adds another layer of security for your e-commerce store but it’s too much when your store is in development.

In this article, I will show you how to Disable 2FA for your Magento 2 instance. However, it is not recommended to disable 2FA in Magento 2 production environment for security purposes.

Steps to disable Two-Factor Authentication:

  1. Open your command line and go to root of your Magento 2 instance
  2. Run command php bin/magento module:disable Magento_TwoFactorAuth
  3. Run command php bin/magento cache:flush
Tagged

Leave a Reply

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