Cannot disable Magento_TwoFactorAuth because modules depend on it:

You will face this issue when you try to disable the 2 Factor authentication of Magento admin especially when you installed it first time. The reason is you haven’t configured your SMTP yet so there is no means you can get 2FA working. Till 2.4.4 version of Magento you can just disable it by using php bin/magento module:disable Magento_TwoFactorAuth but from 2.5.5 you face issue when you do so. In that case you need to use below command.

php bin/magento module:disable {Magento_AdminAdobeImsTwoFactorAuth,Magento_TwoFactorAuth}

If doesn’t work immediately then clear cache, upgrade and di-compile. Normally, not required.

Updated : 26 Mar 24

Knowledge Bites

Scroll to Top