From 91d7f14b2614adcf31808d9b76175e38c13d2514 Mon Sep 17 00:00:00 2001 From: Lorenzo Milesi Date: Fri, 13 Jul 2018 11:49:24 +0200 Subject: [PATCH] Removed qrcode-library as required #131 --- composer.json | 8 +++++--- docs/helpful-guides/how-to-implement-two-factor-auth.md | 9 +++++++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index ad582b5..96febfc 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/docs/helpful-guides/how-to-implement-two-factor-auth.md b/docs/helpful-guides/how-to-implement-two-factor-auth.md index 53ebf79..ac508f3 100644 --- a/docs/helpful-guides/how-to-implement-two-factor-auth.md +++ b/docs/helpful-guides/how-to-implement-two-factor-auth.md @@ -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' => [