Moved redirect functionality back to start register and log in functions

This commit is contained in:
Justin Stein 2018-11-04 10:48:55 -08:00
parent 0283ab11b5
commit c37e73b626

View File

@ -40,7 +40,7 @@ class SocialAuthService
public function startLogIn($socialDriver) public function startLogIn($socialDriver)
{ {
$driver = $this->validateDriver($socialDriver); $driver = $this->validateDriver($socialDriver);
return $this->redirectToSocialProvider($driver); return $this->redirectToSocialProvider($driver)->redirect();
} }
/** /**
@ -52,7 +52,7 @@ class SocialAuthService
public function startRegister($socialDriver) public function startRegister($socialDriver)
{ {
$driver = $this->validateDriver($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')) 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);
} }
} }