NOW MANAGED ON CODEBERG
Added environment variable for google select account option.
Justin Stein57d99130ee69
diff --git a/.env.example b/.env.exampleindex eda20ea26..6e015335e 100644--- a/.env.example+++ b/.env.example@@ -48,6 +48,7 @@ GITHUB_APP_ID=falseGITHUB_APP_SECRET=falseGOOGLE_APP_ID=falseGOOGLE_APP_SECRET=false+GOOGLE_SELECT_ACCOUNT=falseOKTA_BASE_URL=falseOKTA_APP_ID=falseOKTA_APP_SECRET=falsediff --git a/app/Auth/Access/SocialAuthService.php b/app/Auth/Access/SocialAuthService.phpindex 024a1e736..092f5212c 100644--- a/app/Auth/Access/SocialAuthService.php+++ b/app/Auth/Access/SocialAuthService.php@@ -52,7 +52,7 @@ class SocialAuthServicepublic function startRegister($socialDriver){$driver = $this->validateDriver($socialDriver);- if ($socialDriver == 'google') {+ if ($socialDriver == 'google' && env('GOOGLE_SELECT_ACCOUNT')) {return $this->socialite->driver($driver)->with(['prompt' => 'select_account'])->redirect();}return $this->socialite->driver($driver)->redirect();