@@ -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 | { |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | /** |
23 | 23 | * Adds client connections |
24 | 24 | * @param array $clients |
25 | - * @return true |
|
25 | + * @return boolean |
|
26 | 26 | */ |
27 | 27 | public function setClients($clients = []) |
28 | 28 | { |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | |
36 | 36 | /** |
37 | 37 | * Retrieves the queue |
38 | - * @return Disque\Client |
|
38 | + * @return Client |
|
39 | 39 | */ |
40 | 40 | public function get() |
41 | 41 | { |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace yrc\components; |
4 | 4 | |
5 | -use Yii; |
|
6 | 5 | use yii\base\Object; |
7 | 6 | use Disque\Connection\Credentials; |
8 | 7 | use Disque\Client; |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use app\forms\ChangeEmail; |
6 | 6 | use yrc\rest\Action as RestAction; |
7 | - |
|
8 | 7 | use yii\web\HttpException; |
9 | 8 | use Yii; |
10 | 9 |
@@ -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 static function post($params) |
22 | 22 | { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use app\forms\Registration; |
6 | 6 | use yrc\rest\Action as RestAction; |
7 | - |
|
8 | 7 | use yii\web\HttpException; |
9 | 8 | use Yii; |
10 | 9 |
@@ -8,7 +8,6 @@ |
||
8 | 8 | use yii\filters\VerbFilter; |
9 | 9 | use yii\web\HttpException; |
10 | 10 | use Yii; |
11 | - |
|
12 | 11 | use ReflectionClass; |
13 | 12 | use ReflectionMethod; |
14 | 13 |
@@ -247,8 +247,8 @@ discard block |
||
247 | 247 | $totp = new TOTP( |
248 | 248 | $this->username, |
249 | 249 | $encodedSecret, |
250 | - 30, // 30 second window |
|
251 | - 'sha256', // SHA256 for the hashing algorithm |
|
250 | + 30, // 30 second window |
|
251 | + 'sha256', // SHA256 for the hashing algorithm |
|
252 | 252 | 6 // 6 digits |
253 | 253 | ); |
254 | 254 | |
@@ -302,8 +302,8 @@ discard block |
||
302 | 302 | $totp = new TOTP( |
303 | 303 | $this->username, |
304 | 304 | $this->otp_secret, |
305 | - 30, // 30 second window |
|
306 | - 'sha256', // SHA256 for the hashing algorithm |
|
305 | + 30, // 30 second window |
|
306 | + 'sha256', // SHA256 for the hashing algorithm |
|
307 | 307 | 6 // 6 digits |
308 | 308 | ); |
309 | 309 |
@@ -48,7 +48,7 @@ |
||
48 | 48 | $token->user_id = $userId; |
49 | 49 | $token->access_token = \str_replace('=', '', Base32::encode(\random_bytes(32))); |
50 | 50 | $token->refresh_token = \str_replace('=', '', Base32::encode(\random_bytes(32))); |
51 | - $token->ikm = \base64_encode(\random_bytes(32)); |
|
51 | + $token->ikm = \base64_encode(\random_bytes(32)); |
|
52 | 52 | $token->expires_at = strtotime(static::TOKEN_EXPIRATION_TIME); |
53 | 53 | |
54 | 54 | if ($token->save()) { |