mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
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
@ -52,6 +52,9 @@ class SocialAuthService
|
|||||||
public function startRegister($socialDriver)
|
public function startRegister($socialDriver)
|
||||||
{
|
{
|
||||||
$driver = $this->validateDriver($socialDriver);
|
$driver = $this->validateDriver($socialDriver);
|
||||||
|
if ($socialDriver == 'google') {
|
||||||
|
return $this->socialite->driver($driver)->with(['prompt' => 'select_account'])->redirect();
|
||||||
|
}
|
||||||
return $this->socialite->driver($driver)->redirect();
|
return $this->socialite->driver($driver)->redirect();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user