I just installed Magento 2.4.2 on my website. However, at the admin panel, I can see that 2FA is enabled by default. How can I disable 2FA in Magento and login to my admin panel?
You can disable this via the command line:
bin/magento config:set twofactorauth/general/enable 0
bin/magento cache:flush
alternatively you can disable the module altogether:
bin/magento module:disable Magento_TwoFactorAuth
bin/magento cache:flush