Removed qrcode-library as required #131

This commit is contained in:
Lorenzo Milesi
2018-07-13 11:49:24 +02:00
parent 547ea061a9
commit 91d7f14b26
2 changed files with 12 additions and 5 deletions

View File

@ -51,9 +51,11 @@
"yiisoft/yii2-authclient": "^2.1",
"yiisoft/yii2-httpclient": "^2.0",
"yiisoft/yii2-bootstrap": "^2.0",
"yiisoft/yii2-swiftmailer": "^2.0",
"2amigos/2fa-library": "^1.0",
"2amigos/qrcode-library": "^1.1"
"yiisoft/yii2-swiftmailer": "^2.0"
},
"suggest": {
"2amigos/2fa-library": "Needed if you want to enable 2 Factor Authentication. Require version ^1.0",
"2amigos/qrcode-library": "Needed if you want to enable 2FA with QR Code generation. Require version ^1.1"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.3",

View File

@ -11,11 +11,16 @@ With this module is quite easy. It basically implements two factor authenticatio
- [2amigos/2fa-library](https://github.com/2amigos/2fa-library)
- [2amigos/qrcode-library](https://github.com/2amigos/qrcode-library)
Enable Two Factor
-----------------
We simply need to enable two factor authentication:
Install required libraries with:
```
composer require 2amigos/2fa-library "^1.0"
composer require 2amigos/qrcode-library "^1.1"
```
Then enable two factor authentication in your config:
```php
'modules' => [