From c37e73b626e112aa9f36799ee89bac1751d34b9a Mon Sep 17 00:00:00 2001 From: Justin Stein Date: Sun, 4 Nov 2018 10:48:55 -0800 Subject: [PATCH] Moved redirect functionality back to start register and log in functions --- app/Auth/Access/SocialAuthService.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Auth/Access/SocialAuthService.php b/app/Auth/Access/SocialAuthService.php index 79f6bbd0f..62025bf7c 100644 --- a/app/Auth/Access/SocialAuthService.php +++ b/app/Auth/Access/SocialAuthService.php @@ -40,7 +40,7 @@ class SocialAuthService public function startLogIn($socialDriver) { $driver = $this->validateDriver($socialDriver); - return $this->redirectToSocialProvider($driver); + return $this->redirectToSocialProvider($driver)->redirect(); } /** @@ -52,7 +52,7 @@ class SocialAuthService public function startRegister($socialDriver) { $driver = $this->validateDriver($socialDriver); - return $this->redirectToSocialProvider($driver); + return $this->redirectToSocialProvider($driver)->redirect(); } /** @@ -257,9 +257,9 @@ class SocialAuthService { if ($driver == 'google' && config('services.google.select_account')) { - return $this->socialite->driver($driver)->with(['prompt' => 'select_account'])->redirect(); + return $this->socialite->driver($driver)->with(['prompt' => 'select_account']); } - return $this->socialite->driver($driver)->redirect(); + return $this->socialite->driver($driver); } }