From: Vincent Vanwaelscappel Date: Thu, 7 Oct 2021 18:54:44 +0000 (+0200) Subject: wip #4765 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=4540995da1fb2fe7200e2de931099dd4ced9dfcf;p=cubist_socialite.git wip #4765 --- diff --git a/composer.lock b/composer.lock index 912a608..9cdb1fb 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "b5627ef75c3d7f5c85d299dda6125fff", + "content-hash": "869d495d305b080f93990b20b45e8ba5", "packages": [ { "name": "brick/math", diff --git a/src/Http/Controllers/SocialiteController.php b/src/Http/Controllers/SocialiteController.php index 420ba65..258b044 100644 --- a/src/Http/Controllers/SocialiteController.php +++ b/src/Http/Controllers/SocialiteController.php @@ -29,13 +29,6 @@ class SocialiteController extends Controller public function callback() { - $provider = request()->provider; - if (in_array($provider, $this->providers)) { - $socialiteUser=Socialite::driver($provider)->user(); - if($socialiteUser) { - Auth::login(new User($socialiteUser),true); - } - } - abort(403); + } } \ No newline at end of file