Skip to content

Commit

Permalink
Only login when not authenticated
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Mar 24, 2020
1 parent 742ccf9 commit 1a2f333
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Middleware/WindowsAuthenticate.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ protected function authenticate($request, array $guards)
}

foreach ($guards as $guard) {
if ($this->auth->guard($guard)->check()) {
break;
}

$provider = $this->auth->guard($guard)->getProvider();

if (! $provider instanceof UserProvider) {
Expand Down

0 comments on commit 1a2f333

Please sign in to comment.