]>
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:
495d188
)
Add select account parameter for google authorization
author
Justin Stein
<redacted>
Fri, 12 Oct 2018 18:52:13 +0000
(11:52 -0700)
committer
Justin Stein
<redacted>
Fri, 12 Oct 2018 18:52:13 +0000
(11:52 -0700)
Useful for choosing an account if a default account is outside the scope of a G Suite organization.
app/Auth/Access/SocialAuthService.php
patch
|
blob
|
history
diff --git
a/app/Auth/Access/SocialAuthService.php
b/app/Auth/Access/SocialAuthService.php
index 87db1d5c6d4f1bfeadfb28c173da36e777b1b6a9..024a1e736d11ddb76f97a43f86105337811e20cd 100644
(file)
--- a/
app/Auth/Access/SocialAuthService.php
+++ b/
app/Auth/Access/SocialAuthService.php
@@
-52,6
+52,9
@@
class SocialAuthService
public function startRegister($socialDriver)
{
$driver = $this->validateDriver($socialDriver);
+ if ($socialDriver == 'google') {
+ return $this->socialite->driver($driver)->with(['prompt' => 'select_account'])->redirect();
+ }
return $this->socialite->driver($driver)->redirect();
}