@@ -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 | } |