Magento 2.4.2-如何禁用双重身份验证?

Magento 2.4.2- How to disable two factor authentication?

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

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

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

或者您可以完全禁用该模块:

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

您还可以使用 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