Magento 2: How to disable the Admin Two Factor Auth (2FA) Feature

Magento 2: How to disable the Admin Two Factor Auth (2FA) Feature cover image

By Andrew McCombe
September 17, 2020


Today I installed Magento 2 for the first time in about a year. Once installed I navigated to the admin area and was presented with a two factor auth warning. Here's what I got:

Magento admin's 2FA screen

Luckily there's a way to disable this from the terminal using the bin/magento tool:

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

Once done you should reload your admin screen and you can login as normal.

Note: Its probably a good idea to leave 2FA enabled on production sites.