wolfsellers / module-enabledisabletfa
为两步验证添加启用/禁用开关
1.0.4
2022-07-06 20:57 UTC
Requires
- magento/module-two-factor-auth: 1.*
This package is auto-updated.
Last update: 2024-09-07 01:53:25 UTC
README
主要功能
为 Magento 2.4 添加两步验证的启用/禁用功能开关
它可以在 商店 > 配置 > 2FA > 通用 > 启用
中进行配置,默认设置为不启用,以便管理员可以使用。在生产环境中更改它。
安装
1. Composer(推荐)
- 通过运行
composer require wolfsellers/module-enabledisabletfa
安装模块 - 通过运行
php bin/magento module:enable WolfSellers_EnableDisableTfa
启用模块 - 通过运行
php bin/magento setup:upgrade
应用数据库更新 - 通过运行
php bin/magento cache:flush
清除缓存
2. 下载 ZIP 文件(不推荐)
- 从 github 下载 ZIP 文件
- 在
app/code/WolfSellers/EnableDisableTfa/
中提取文件 - 通过运行
php bin/magento module:enable WolfSellers_EnableDisableTfa
启用模块 - 通过运行
php bin/magento setup:upgrade
应用数据库更新 - 通过运行
php bin/magento cache:flush
清除缓存
测试
在 Magento 2.4.0 版本上测试
- 社区版
- 企业版
- 云版
通过 CLI 切换
php bin/magento config:set twofactorauth/general/enabled 1 # or 0