]>
BookStack Code Mirror - bookstack/commitdiff
projects
/
bookstack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
57d9913
)
Added Google select account functionality to login
author
Justin Stein
<redacted>
Sat, 13 Oct 2018 22:14:06 +0000
(15:14 -0700)
committer
Justin Stein
<redacted>
Sat, 13 Oct 2018 22:14:06 +0000
(15:14 -0700)
app/Auth/Access/SocialAuthService.php
patch
|
blob
|
history
diff --git
a/app/Auth/Access/SocialAuthService.php
b/app/Auth/Access/SocialAuthService.php
index 092f5212c1e6d9ee8a9ea129b0dcc95378c888ff..a9adec93eb5ddac37581f2a61c0e7dd279d956ce 100644
(file)
--- a/
app/Auth/Access/SocialAuthService.php
+++ b/
app/Auth/Access/SocialAuthService.php
@@
-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();
}