desrodman/yii2-google-authenticator
Composer 安装命令:
composer require desrodman/yii2-google-authenticator
包简介
2 step verification of google authenticator for your yii2 application
README 文档
README
Add to composer.json
"desrodman/yii2-google-authenticator": "@dev"
or
composer require --prefer-dist "desrodman/yii2-google-authenticator @dev"
Once the extension is installed, simply modify your application configuration as follows:
'modules' => [ ---------------- 'authenticator' => [ 'class' => 'desrodman\authenticator\Module', 'twoStepVerification' => true, ], ], -------------------- 'bootstrap' => ['log', 'authenticator'],
Migrate Command:
yii migrate
php yii migrate --migrationPath=@desrodman/authenticator/migrations
You can then access Next Authenticator through the following URL:
http://localhost/path/to/index.php?r=authenticator/default/scan
or if you have enabled pretty URLs, you may use the following URL:
http://localhost/path/to/index.php/authenticator/default/scan
统计信息
- 总下载量: 340
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2020-11-26