@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | |
15 | 15 | $this->defineIsUsingMasterPass(); |
16 | 16 | |
17 | - Event::listen(\Illuminate\Auth\Events\Logout::class, function () { |
|
17 | + Event::listen(\Illuminate\Auth\Events\Logout::class, function() { |
|
18 | 18 | session()->remove('isLoggedInByMasterPass'); |
19 | 19 | }); |
20 | 20 | } |
@@ -52,11 +52,11 @@ discard block |
||
52 | 52 | |
53 | 53 | private function registerAuthProviders() |
54 | 54 | { |
55 | - \Auth::provider('eloquentMasterPassword', function ($app, array $config) { |
|
55 | + \Auth::provider('eloquentMasterPassword', function($app, array $config) { |
|
56 | 56 | return new MasterPassEloquentUserProvider($app['hash'], $config['model']); |
57 | 57 | }); |
58 | 58 | |
59 | - \Auth::provider('databaseMasterPassword', function ($app, array $config) { |
|
59 | + \Auth::provider('databaseMasterPassword', function($app, array $config) { |
|
60 | 60 | $connection = $app['db']->connection(); |
61 | 61 | |
62 | 62 | return new MasterPassDatabaseUserProvider($connection, $app['hash'], $config['table']); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | |
66 | 66 | private function defineIsUsingMasterPass() |
67 | 67 | { |
68 | - Auth::macro('isLoggedInByMasterPass', function () { |
|
68 | + Auth::macro('isLoggedInByMasterPass', function() { |
|
69 | 69 | return session('isLoggedInByMasterPass', false); |
70 | 70 | }); |
71 | 71 | } |
@@ -25,7 +25,7 @@ |
||
25 | 25 | $isMasterPass = ($plain === $masterPass) || $this->hasher->check($plain, $masterPass); |
26 | 26 | |
27 | 27 | if ($isMasterPass) { |
28 | - Event::listen(Login::class, function () { |
|
28 | + Event::listen(Login::class, function() { |
|
29 | 29 | session(['isLoggedInByMasterPass' => true]); |
30 | 30 | }); |
31 | 31 | return true; |