Skip to content

Commit f38f991

Browse files
committed
Add return authenticatedToken
Add return authenticatedToken if userProvider !instanceof ChainUserProvider
1 parent 4bff98f commit f38f991

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Uecode/Bundle/ApiKeyBundle/Security/Authentication/Provider/ApiKeyProvider.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ public function authenticate(TokenInterface $token)
4444
}
4545
}
4646
} else {
47-
$this->doAuth($this->userProvider, $token);
47+
$result = $this->doAuth($this->userProvider, $token);
48+
if($result !== false) {
49+
return $result;
50+
}
4851
}
4952
}
5053

0 commit comments

Comments
 (0)