mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
Added environment variable for google select account option.
This commit is contained in:
parent
79afec9737
commit
57d99130ee
@ -48,6 +48,7 @@ GITHUB_APP_ID=false
|
||||
GITHUB_APP_SECRET=false
|
||||
GOOGLE_APP_ID=false
|
||||
GOOGLE_APP_SECRET=false
|
||||
GOOGLE_SELECT_ACCOUNT=false
|
||||
OKTA_BASE_URL=false
|
||||
OKTA_APP_ID=false
|
||||
OKTA_APP_SECRET=false
|
||||
|
@ -52,7 +52,7 @@ class SocialAuthService
|
||||
public 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();
|
||||
|
Loading…
Reference in New Issue
Block a user