Removed qrcode-library as required #131
This commit is contained in:
@ -51,9 +51,11 @@
|
|||||||
"yiisoft/yii2-authclient": "^2.1",
|
"yiisoft/yii2-authclient": "^2.1",
|
||||||
"yiisoft/yii2-httpclient": "^2.0",
|
"yiisoft/yii2-httpclient": "^2.0",
|
||||||
"yiisoft/yii2-bootstrap": "^2.0",
|
"yiisoft/yii2-bootstrap": "^2.0",
|
||||||
"yiisoft/yii2-swiftmailer": "^2.0",
|
"yiisoft/yii2-swiftmailer": "^2.0"
|
||||||
"2amigos/2fa-library": "^1.0",
|
},
|
||||||
"2amigos/qrcode-library": "^1.1"
|
"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": {
|
"require-dev": {
|
||||||
"friendsofphp/php-cs-fixer": "^2.3",
|
"friendsofphp/php-cs-fixer": "^2.3",
|
||||||
|
|||||||
@ -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/2fa-library](https://github.com/2amigos/2fa-library)
|
||||||
- [2amigos/qrcode-library](https://github.com/2amigos/qrcode-library)
|
- [2amigos/qrcode-library](https://github.com/2amigos/qrcode-library)
|
||||||
|
|
||||||
|
|
||||||
Enable Two Factor
|
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
|
```php
|
||||||
'modules' => [
|
'modules' => [
|
||||||
|
|||||||
Reference in New Issue
Block a user