From: Justin Stein Date: Fri, 12 Oct 2018 18:52:13 +0000 (-0700) Subject: Add select account parameter for google authorization X-Git-Tag: v0.24.2~3^2~2^2~9 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/a76599bd2aaf85040b67b3ce2f64e6ea88961936 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. --- diff --git a/app/Auth/Access/SocialAuthService.php b/app/Auth/Access/SocialAuthService.php index 87db1d5c6..024a1e736 100644 --- a/app/Auth/Access/SocialAuthService.php +++ b/app/Auth/Access/SocialAuthService.php @@ -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(); }