Skip to content

Commit

Permalink
added params config
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Aug 20, 2017
1 parent 0deac24 commit 04003e2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions composer.json
Expand Up @@ -59,6 +59,7 @@
},
"extra": {
"config-plugin": {
"params": "src/config/params.php",
"web": "src/config/web.php"
}
},
Expand Down
13 changes: 13 additions & 0 deletions src/config/params.php
@@ -0,0 +1,13 @@
<?php
/**
* Multi-factor authentication for Yii2 projects
*
* @link https://github.com/hiqdev/yii2-mfa
* @package yii2-mfa
* @license BSD-3-Clause
* @copyright Copyright (c) 2016-2017, HiQDev (http://hiqdev.com/)
*/

return [
'organization.name' => null,
];
2 changes: 1 addition & 1 deletion src/config/web.php
Expand Up @@ -32,7 +32,7 @@
'class' => \hiqdev\yii2\mfa\Module::class,
'totp' => [
'workerClass' => \RobThree\Auth\TwoFactorAuth::class,
'issuer' => !empty($params['organizationName']) ? $params['organizationName'] : 'Yii2 MFA',
'issuer' => !empty($params['organization.name']) ? $params['organization.name'] : 'Yii2 MFA',
],
],
],
Expand Down

0 comments on commit 04003e2

Please sign in to comment.