Completed
Pull Request — master (#11)
by
unknown
13:16
created
src/Module.php 2 patches
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -46,21 +46,33 @@
 block discarded – undo
46 46
         return $this->_totp;
47 47
     }
48 48
 
49
+    /**
50
+     * @param string $name
51
+     */
49 52
     public function sessionSet($name, $value)
50 53
     {
51 54
         Yii::$app->session->set($this->paramPrefix . $name, $value);
52 55
     }
53 56
 
57
+    /**
58
+     * @param string $name
59
+     */
54 60
     public function sessionGet($name)
55 61
     {
56 62
         return Yii::$app->session->get($this->paramPrefix . $name);
57 63
     }
58 64
 
65
+    /**
66
+     * @param string $name
67
+     */
59 68
     public function sessionRemove($name)
60 69
     {
61 70
         return Yii::$app->session->remove($this->paramPrefix . $name);
62 71
     }
63 72
 
73
+    /**
74
+     * @param MfaIdentityInterface $value
75
+     */
64 76
     public function setHalfUser($value)
65 77
     {
66 78
         $this->sessionSet('halfUser', $value);
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,6 @@
 block discarded – undo
18 18
 use yii\di\Instance;
19 19
 use yii\helpers\StringHelper;
20 20
 use yii\validators\IpValidator;
21
-use yii\web\IdentityInterface;
22 21
 
23 22
 /**
24 23
  * Multi-factor authentication module.
Please login to merge, or discard this patch.