我刚刚在我的网站上安装了Magento 2.4.2。但是,在管理面板中,我可以看到2FA在默认情况下是启用的。如何在Magento中禁用2FA并登录到我的管理面板?
发布于 2021-03-29 02:06:28
您可以通过命令行禁用此功能:
bin/magento config:set twofactorauth/general/enable 0
bin/magento cache:flush
或者,您可以完全禁用该模块:
bin/magento module:disable Magento_TwoFactorAuth
bin/magento cache:flush
发布于 2021-04-01 15:05:44
您还可以使用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
https://stackoverflow.com/questions/66831517
复制相似问题