@@ -291,8 +291,8 @@ |
||
291 | 291 | public function check2facode(string $code2fa): bool |
292 | 292 | { |
293 | 293 | $secret = DB::table('user') |
294 | - ->where('user_id', '=', $this->id()) |
|
295 | - ->value('secret'); |
|
294 | + ->where('user_id', '=', $this->id()) |
|
295 | + ->value('secret'); |
|
296 | 296 | settype($secret, "string"); |
297 | 297 | $google2fa = new Google2FA(); |
298 | 298 | $googleverifystatus = $google2fa->verifyKey($secret, $code2fa); |