【问题标题】:Magento 2.4.2- How to disable two factor authentication?Magento 2.4.2-如何禁用两因素身份验证?
【发布时间】:2021-03-27 12:48:58
【问题描述】:

我刚刚在我的网站上安装了 Magento 2.4.2。但是,在管理面板中,我可以看到默认情况下启用了 2FA。如何在 Magento 中禁用 2FA 并登录到我的管理面板?

【问题讨论】:

    标签: magento magento2


    【解决方案1】:

    您可以通过命令行禁用此功能:

    bin/magento config:set twofactorauth/general/enable 0
    bin/magento cache:flush
    

    您也可以完全禁用该模块:

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

    【讨论】:

    • 太棒了!!非常感谢你。修复了我的问题。
    【解决方案2】:

    您还可以使用 MarkShust_DisableTwoFactorAuth 扩展:https://github.com/markshust/magento2-module-disabletwofactorauth。它将添加缺少的切换开关以从管理员打开或关闭 2FA。

    bin/magento config:set twofactorauth/general/enable 0
    bin/magento config:set twofactorauth/general/enable_for_api_token_generation 0
    

    【讨论】:

      猜你喜欢
      • 2014-05-05
      • 2019-07-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-11-03
      • 2016-06-06
      • 2016-02-21
      • 1970-01-01
      相关资源
      最近更新 更多