James Cole
2023-01-01 15:27:14 +01:00
parent b0b65c3f04
commit 3c1f44f554
2 changed files with 3 additions and 3 deletions

View File

@@ -123,6 +123,8 @@ class Authenticate
Log::debug('Guard array is not empty.');
foreach ($guards as $guard) {
Log::debug(sprintf('Now in guard loop, guard is "%s"', $guard));
$this->auth->guard($guard)->authenticate();
if ($this->auth->guard($guard)->check()) {
/** @noinspection PhpVoidFunctionResultUsedInspection */
return $this->auth->shouldUse($guard); // @phpstan-ignore-line