@@ -174,7 +174,7 @@ |
||
| 174 | 174 | /** |
| 175 | 175 | * Save the user identity logged in object when an identity need to verify. |
| 176 | 176 | * |
| 177 | - * @param IdentityInterface|null $identity the identity object associated with the currently logged user. |
|
| 177 | + * @param IdentityInterface $identity the identity object associated with the currently logged user. |
|
| 178 | 178 | * @param int $duration number of seconds that the user can remain in logged-in status. |
| 179 | 179 | */ |
| 180 | 180 | public function saveIdentityLoggedIn(IdentityInterface $identity, int $duration) |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | namespace vxm\mfa; |
| 9 | 9 | |
| 10 | 10 | use Yii; |
| 11 | - |
|
| 12 | 11 | use yii\base\Behavior as BaseBehavior; |
| 13 | 12 | use yii\base\InvalidValueException; |
| 14 | 13 | use yii\di\Instance; |
@@ -9,9 +9,7 @@ |
||
| 9 | 9 | |
| 10 | 10 | use OTPHP\HOTP; |
| 11 | 11 | use OTPHP\TOTP; |
| 12 | - |
|
| 13 | 12 | use ParagonIE\ConstantTime\Base32; |
| 14 | - |
|
| 15 | 13 | use yii\base\BaseObject; |
| 16 | 14 | use yii\base\NotSupportedException; |
| 17 | 15 | |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | namespace vxm\mfa; |
| 9 | 9 | |
| 10 | 10 | use Yii; |
| 11 | - |
|
| 12 | 11 | use yii\base\Action; |
| 13 | 12 | use yii\base\InvalidConfigException; |
| 14 | 13 | |
@@ -8,7 +8,6 @@ |
||
| 8 | 8 | namespace vxm\tests\unit\mfa; |
| 9 | 9 | |
| 10 | 10 | use vxm\mfa\IdentityInterface; |
| 11 | - |
|
| 12 | 11 | use yii\base\Model; |
| 13 | 12 | use yii\base\NotSupportedException; |
| 14 | 13 | |