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