@@ -43,7 +43,7 @@ |
||
43 | 43 | |
44 | 44 | /** |
45 | 45 | * Deauthenticates a user |
46 | - * @return mixed |
|
46 | + * @return boolean |
|
47 | 47 | */ |
48 | 48 | public static function delete($params) |
49 | 49 | { |
@@ -17,7 +17,7 @@ |
||
17 | 17 | /** |
18 | 18 | * [POST] /api/[...]/register |
19 | 19 | * Handles registration of users |
20 | - * @return mixed |
|
20 | + * @return boolean |
|
21 | 21 | */ |
22 | 22 | public static function post($params) |
23 | 23 | { |
@@ -71,7 +71,7 @@ |
||
71 | 71 | |
72 | 72 | /** |
73 | 73 | * Validates the users' password and OTP code |
74 | - * @param array $attributes |
|
74 | + * @param array $attribute |
|
75 | 75 | * @param array $params |
76 | 76 | */ |
77 | 77 | public function validatePasswordAndOTP($attribute, $params) |
@@ -97,7 +97,6 @@ |
||
97 | 97 | |
98 | 98 | /** |
99 | 99 | * Retrieves an instance of self |
100 | - * @param string $tokenString The string access token |
|
101 | 100 | * @return Token|null |
102 | 101 | */ |
103 | 102 | public static function find(array $params = []) |
@@ -224,7 +224,7 @@ |
||
224 | 224 | |
225 | 225 | /** |
226 | 226 | * Provisions TOTP for the account |
227 | - * @return boolean|string |
|
227 | + * @return false|string |
|
228 | 228 | */ |
229 | 229 | public function provisionOTP() |
230 | 230 | { |
@@ -86,7 +86,8 @@ |
||
86 | 86 | * @param string $hmac |
87 | 87 | * @param string $accessToken |
88 | 88 | * @param string $salt |
89 | - * @param yii\web\request $request |
|
89 | + * @param \yii\web\Request $request |
|
90 | + * @param string $ikm |
|
90 | 91 | * @return bool |
91 | 92 | */ |
92 | 93 | private function isHMACSignatureValid($accessToken, $ikm, $salt, $request, $hmac = null) |