@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | /** |
14 | 14 | * Make a JSON response. |
15 | 15 | * |
16 | - * @param $statusCode |
|
16 | + * @param integer $statusCode |
|
17 | 17 | * |
18 | 18 | * @return IlluminateJsonResponse |
19 | 19 | */ |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | /** |
47 | 47 | * Make a web response. |
48 | 48 | * |
49 | - * @param $statusCode |
|
49 | + * @param integer $statusCode |
|
50 | 50 | * |
51 | 51 | * @return \Illuminate\Http\Response |
52 | 52 | */ |
@@ -103,5 +103,10 @@ discard block |
||
103 | 103 | |
104 | 104 | abstract public function getRequest(); |
105 | 105 | |
106 | + /** |
|
107 | + * @param string $string |
|
108 | + * |
|
109 | + * @return string|null |
|
110 | + */ |
|
106 | 111 | abstract protected function config($string, $children = []); |
107 | 112 | } |
@@ -126,9 +126,9 @@ |
||
126 | 126 | |
127 | 127 | // check DB for token. |
128 | 128 | $count = DB::table('2fa_tokens') |
129 | - ->where('token', $token) |
|
130 | - ->where('expires_at', '>', $time) |
|
131 | - ->where('user_id', $this->getUser()->id)->count(); |
|
129 | + ->where('token', $token) |
|
130 | + ->where('expires_at', '>', $time) |
|
131 | + ->where('user_id', $this->getUser()->id)->count(); |
|
132 | 132 | |
133 | 133 | return 1 === $count; |
134 | 134 | } |