Skip to content

Commit

Permalink
Merge pull request #469 from sobolevna/master
Browse files Browse the repository at this point in the history
Update Authentication.php
  • Loading branch information
antonioribeiro authored Oct 1, 2019
2 parents f5cfac8 + 2128d96 commit 76e8e7f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/Services/Authentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,13 @@ private function executeAuthMethod($method)
foreach ($this->getAuthentication() as $auth) {
foreach ($guards as $guard) {
// Call guard() if not null
if ($guards != 'null') {
if ($guard && $guard != 'null') {
$auth = $auth->guard($guard);
}

if (is_callable([$auth, $method], true, $callable_name)) {
if ($data = $auth->$method()) {
return $data;
}
}
}
if (is_callable([$auth, $method], true, $callable_name)) {
if ($data = $auth->$method()) {
return $data;
}
}
}
Expand Down

0 comments on commit 76e8e7f

Please sign in to comment.