From: Justin Stein Date: Sun, 4 Nov 2018 18:48:55 +0000 (-0800) Subject: Moved redirect functionality back to start register and log in functions X-Git-Tag: v0.24.2~3^2~2^2~3 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/c37e73b626e112aa9f36799ee89bac1751d34b9a?hp=-c Moved redirect functionality back to start register and log in functions --- c37e73b626e112aa9f36799ee89bac1751d34b9a 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); } }