@@ -30,8 +30,8 @@ |
||
| 30 | 30 | // check DB for token. |
| 31 | 31 | try { |
| 32 | 32 | DB::table('2fa_tokens') |
| 33 | - ->where('token', $token) |
|
| 34 | - ->where('user_id', $event->user->id)->delete(); |
|
| 33 | + ->where('token', $token) |
|
| 34 | + ->where('user_id', $event->user->id)->delete(); |
|
| 35 | 35 | } catch (QueryException $e) { |
| 36 | 36 | Log::error('Could not delete user token from database.'); |
| 37 | 37 | } |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | { |
| 20 | 20 | $this->publishes( |
| 21 | 21 | [ |
| 22 | - __DIR__ . '/config/config.php' => config_path('google2fa.php'), |
|
| 22 | + __DIR__.'/config/config.php' => config_path('google2fa.php'), |
|
| 23 | 23 | ] |
| 24 | 24 | ); |
| 25 | 25 | } |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | private function mergeConfig() |
| 31 | 31 | { |
| 32 | 32 | $this->mergeConfigFrom( |
| 33 | - __DIR__ . '/config/config.php', 'google2fa' |
|
| 33 | + __DIR__.'/config/config.php', 'google2fa' |
|
| 34 | 34 | ); |
| 35 | 35 | } |
| 36 | 36 | |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | { |
| 44 | 44 | $this->app->register(EventServiceProvider::class); |
| 45 | 45 | $this->app->singleton( |
| 46 | - 'pragmarx.google2fa', static function ($app) { |
|
| 46 | + 'pragmarx.google2fa', static function($app) { |
|
| 47 | 47 | |
| 48 | 48 | return $app->make(Google2FA::class); |
| 49 | 49 | } |