Added Google select account functionality to login

This commit is contained in:
Justin Stein 2018-10-13 15:14:06 -07:00
parent 57d99130ee
commit 216358c6e4

View File

@ -40,6 +40,9 @@ class SocialAuthService
public function startLogIn($socialDriver)
{
$driver = $this->validateDriver($socialDriver);
if ($socialDriver == 'google' && env('GOOGLE_SELECT_ACCOUNT')) {
return $this->socialite->driver($driver)->with(['prompt' => 'select_account'])->redirect();
}
return $this->socialite->driver($driver)->redirect();
}