Add select account parameter for google authorization

Useful for choosing an account if a default account is outside the scope of a G Suite organization.
This commit is contained in:
Justin Stein 2018-10-12 11:52:13 -07:00
parent 495d18814a
commit a76599bd2a

View File

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