qssdev/qss_googleauth

为 Magento 2 管理员用户集成的 Google Authenticator 双因素认证

1.2.0 2017-11-10 13:12 UTC

This package is not auto-updated.

Last update: 2024-09-29 03:15:33 UTC


README

此模块将 Google Authenticator 集成到 Magento 2 管理面板中,为店铺管理员提供双因素认证。

功能

  • 为 Magento 2 店铺管理员提供双因素认证
  • 可按用户启用/禁用
  • 在功能激活/密钥(重新)生成时,将登录说明邮寄到已启用用户
  • 命令行界面

安装

您需要服务器上的 SSH 访问权限。

在您的 Magento 2 根目录中运行以下命令

composer config repositories.qextensions git https://github.com/QSolutionsStudio/2FactorAuth-M2.git

(url 将根据公共版本更改)

composer require qextensions/google2factor

php bin/magento module:enable Qextensions_Google2factor

php bin/magento setup:upgrade

您已启用并安装了模块,但为了使其工作,您需要先进行配置。

配置

转到您商店的配置以启用扩展

config1

config2

config3

config4

然后为 Google Authenticator 应用生成您的密钥代码

config5

config6

现在登录屏幕上将出现新字段,但在您为特定用户启用双因素认证之前,它不是必需的

config7

要这样做,请转到您的账户设置

config8

config9

这也可以为其他用户完成,从管理员用户编辑表单或通过 Magento 的命令行界面

config10

一切准备就绪,现在您在登录 Magento 2 控制面板时需要填写有效的登录代码

config11