From: Justin Stein Date: Sat, 13 Oct 2018 22:14:06 +0000 (-0700) Subject: Added Google select account functionality to login X-Git-Tag: v0.24.2~3^2~2^2~5 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/216358c6e4faeaafc67c0208f21910282a16d870 Added Google select account functionality to login --- diff --git a/app/Auth/Access/SocialAuthService.php b/app/Auth/Access/SocialAuthService.php index 092f5212c..a9adec93e 100644 --- a/app/Auth/Access/SocialAuthService.php +++ b/app/Auth/Access/SocialAuthService.php @@ -40,6 +40,9 @@ class SocialAuthService public function startLogIn($socialDriver) { $driver = $this->validateDriver($socialDriver); + if ($socialDriver == 'google' && env('GOOGLE_SELECT_ACCOUNT')) { + return $this->socialite->driver($driver)->with(['prompt' => 'select_account'])->redirect(); + } return $this->socialite->driver($driver)->redirect(); }