mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-07 23:03:00 +03: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:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user