@@ -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 | { |
@@ -87,6 +87,7 @@ discard block |
||
87 | 87 | * @param string $accessToken |
88 | 88 | * @param string $salt |
89 | 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) |
@@ -152,7 +153,7 @@ discard block |
||
152 | 153 | |
153 | 154 | /** |
154 | 155 | * Gets the datetime drift that has occured since the request was sent |
155 | - * @param yii\web\Request $request |
|
156 | + * @param \yii\web\Request $request |
|
156 | 157 | * @return int |
157 | 158 | */ |
158 | 159 | private function getTimeDrift($request) |
@@ -94,6 +94,8 @@ |
||
94 | 94 | /** |
95 | 95 | * Validates the users OTP code, if they provided |
96 | 96 | * @inheritdoc |
97 | + * @param string $attributes |
|
98 | + * @param string $params |
|
97 | 99 | */ |
98 | 100 | public function validateOTP($attributes, $params) |
99 | 101 | { |
@@ -38,7 +38,7 @@ |
||
38 | 38 | |
39 | 39 | /** |
40 | 40 | * Deauthenticates a user |
41 | - * @return mixed |
|
41 | + * @return boolean |
|
42 | 42 | */ |
43 | 43 | public function delete($params) |
44 | 44 | { |
@@ -16,7 +16,7 @@ |
||
16 | 16 | { |
17 | 17 | /** |
18 | 18 | * Handles registration of users |
19 | - * @return mixed |
|
19 | + * @return boolean |
|
20 | 20 | */ |
21 | 21 | public function post($params) |
22 | 22 | { |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | } |
46 | 46 | |
47 | 47 | /** |
48 | - * @return sodium_crypto_sign_publickey |
|
48 | + * @return string |
|
49 | 49 | */ |
50 | 50 | public function getSignPublicKey() |
51 | 51 | { |
@@ -55,8 +55,7 @@ discard block |
||
55 | 55 | /** |
56 | 56 | * Generates a new auth and refresh token pair |
57 | 57 | * @param int $userId |
58 | - * @param bool $pubkey |
|
59 | - * @return array |
|
58 | + * @return Token |
|
60 | 59 | */ |
61 | 60 | public static function generate($userId = null) |
62 | 61 | { |