]> BookStack Code Mirror - bookstack/commitdiff
Moved redirect functionality back to start register and log in functions
authorJustin Stein <redacted>
Sun, 4 Nov 2018 18:48:55 +0000 (10:48 -0800)
committerJustin Stein <redacted>
Sun, 4 Nov 2018 18:48:55 +0000 (10:48 -0800)
app/Auth/Access/SocialAuthService.php

index 79f6bbd0f7138e3187a4891a935e7d0813c6eabc..62025bf7cf2434d8d3feb832149b81d2817b77a4 100644 (file)
@@ -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);
     }
 }