1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Added environment variable for google select account option.

This commit is contained in:
Justin Stein
2018-10-13 14:50:58 -07:00
parent 79afec9737
commit 57d99130ee
2 changed files with 2 additions and 1 deletions

View File

@ -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();