Added Google select account functionality to login
This commit is contained in:
parent
57d99130ee
commit
216358c6e4
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue