pmclain / magento2-tfa
1.1.1
2018-02-19 23:59 UTC
Requires
- php: ~7.0.0|~7.1.0
- bacon/bacon-qr-code: ~1.0.0
- magento/framework: ~101.0.0||~100.3.0
- pragmarx/google2fa: ~2.0.0
This package is auto-updated.
Last update: 2019-05-21 12:02:23 UTC
README
使用Google Authenticator对Magento 2管理员面板进行两因素认证
服务器时间
确保您的服务器时间与某个NTP服务器同步非常重要。
安装
在您的Magento 2基本目录中运行composer require pmclain/magento2-tfa
bin/magento setup:upgrade
- 必须通过点击Magento 2管理员面板中的'账户设置(用户)'来由每个用户启用TFA。
- 一旦进入,用户就可以启用两因素认证并查看兼容Google Authenticator的应用程序的二维码。
- 启用了TFA的用户必须在Magento 2管理员登录页面输入有效的认证代码才能登录。
- 禁用了TFA的用户可以在登录时留空'认证器代码'字段。
控制台命令
如有需要,可以使用控制台命令禁用TFA
为所有管理员用户禁用TFA
bin/magento pmclain:tfa:disable
通过电子邮件禁用单个管理员用户的TFA
bin/magento pcmlain:tfa:disable admin@example.com
Magento版本兼容性
版本 | Magento版本 |
---|---|
1.1.x | 2.2.x |
1.0.x | 2.1.x |
1.0.x | 2.0.x |
Google Authenticator应用
要使用两因素认证,您的用户必须安装一个兼容Google Authenticator的应用,以下是一些目前可用的应用
- Authy for iOS, Android, Chrome, OS X
- FreeOTP for iOS, Android and Peeble
- FreeOTP for iOS, Android and Peeble
- Google Authenticator for iOS
- Google Authenticator for Android
- Google Authenticator for Blackberry
- Google Authenticator (port) on Windows app store
- Microsoft Authenticator for Windows Phone
- 1Password for iOS, Android, OSX, Windows
许可证
开放软件许可证 v3.0