From 216358c6e4faeaafc67c0208f21910282a16d870 Mon Sep 17 00:00:00 2001 From: Justin Stein Date: Sat, 13 Oct 2018 15:14:06 -0700 Subject: [PATCH] Added Google select account functionality to login --- app/Auth/Access/SocialAuthService.php | 3 +++ 1 file changed, 3 insertions(+) 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(); }