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:
parent
495d18814a
commit
a76599bd2a
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue