]> BookStack Code Mirror - bookstack/blobdiff - app/Providers/AppServiceProvider.php
Updated all login events to route through single service
[bookstack] / app / Providers / AppServiceProvider.php
index abee6bcda2edd772d0c8cd5e8c0753534fd47a4f..f7c8fe4923b777adefecb977eaf666d4098bee2f 100644 (file)
@@ -3,6 +3,7 @@
 namespace BookStack\Providers;
 
 use Blade;
+use BookStack\Auth\Access\LoginService;
 use BookStack\Auth\Access\SocialAuthService;
 use BookStack\Entities\BreadcrumbsViewComposer;
 use BookStack\Entities\Models\Book;
@@ -68,7 +69,7 @@ class AppServiceProvider extends ServiceProvider
         });
 
         $this->app->singleton(SocialAuthService::class, function ($app) {
-            return new SocialAuthService($app->make(SocialiteFactory::class));
+            return new SocialAuthService($app->make(SocialiteFactory::class), $app->make(LoginService::class));
         });
     }
 }