Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • i would not recommend to force disable the module, rather use new module which extend the configuration so there should always be an option to control the configurations from admin panel. Commented Aug 14, 2020 at 4:02
  • @ZeeshanKhuwaja it's useful to disable this in development to avoid having to perform 2FA on your development machine when logging into admin. I wouldn't disable in production as it's a useful security feature. Commented Sep 5, 2020 at 19:50
  • 2
    Yes, this feature enabled by default is a pain for localhost installation. I would prefer to login without it and then enable this feature from the Admin panel. Commented Oct 8, 2020 at 19:52
  • 2
    For me, I needed to run "bin/magento setup:di:compile" also Commented Oct 8, 2020 at 19:56
  • 2
    This is the result of running bin/magento module:disable Magento_TwoFactorAuth The following modules have been disabled: - Magento_TwoFactorAuth Cache cleared successfully. Generated classes cleared successfully. Please run the 'setup:di:compile' command to generate classes. Info: Some modules might require static view files to be cleared. To do this, run 'module:disable' with the --clear-static-content option to clear them. So the proper answer would be to run bin/magento module:disable Magento_TwoFactorAuth bin/magento setup:di:compile Not bin/magento cache:flush Commented Jun 22, 2022 at 13:46