mirror of
				https://github.com/BookStackApp/BookStack.git
				synced 2025-11-03 02:13:16 +03:00 
			
		
		
		
	Added environment variable for google select account option.
This commit is contained in:
		@@ -48,6 +48,7 @@ GITHUB_APP_ID=false
 | 
				
			|||||||
GITHUB_APP_SECRET=false
 | 
					GITHUB_APP_SECRET=false
 | 
				
			||||||
GOOGLE_APP_ID=false
 | 
					GOOGLE_APP_ID=false
 | 
				
			||||||
GOOGLE_APP_SECRET=false
 | 
					GOOGLE_APP_SECRET=false
 | 
				
			||||||
 | 
					GOOGLE_SELECT_ACCOUNT=false
 | 
				
			||||||
OKTA_BASE_URL=false
 | 
					OKTA_BASE_URL=false
 | 
				
			||||||
OKTA_APP_ID=false
 | 
					OKTA_APP_ID=false
 | 
				
			||||||
OKTA_APP_SECRET=false
 | 
					OKTA_APP_SECRET=false
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -52,7 +52,7 @@ class SocialAuthService
 | 
				
			|||||||
    public function startRegister($socialDriver)
 | 
					    public function startRegister($socialDriver)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        $driver = $this->validateDriver($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)->with(['prompt' => 'select_account'])->redirect();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        return $this->socialite->driver($driver)->redirect();
 | 
					        return $this->socialite->driver($driver)->redirect();
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user