feat: improved handling and logging of access denied errors
This commit is contained in:
1 parent
aa708e491c
commit
c37309b3c1
3 files changed
+29
-12
No files matched your search
@@ -33,7 +33,7 @@ class BpnAuthenticator extends AbstractLoginFormAuthenticator implements Authent
|
||||
private readonly ApiClient $apiClient,
|
||||
private readonly EntityManagerInterface $entityManager,
|
||||
private readonly Crypt $crypt,
|
||||
private readonly LoggerInterface $logger,
|
||||
private readonly LoggerInterface $authLogger,
|
||||
) {
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ class BpnAuthenticator extends AbstractLoginFormAuthenticator implements Authent
|
||||
|
||||
public function onAuthenticationSuccess(Request $request, TokenInterface $token, string $firewallName): ?Response
|
||||
{
|
||||
$this->logger->info('Login', [
|
||||
$this->authLogger->info('Login', [
|
||||
'email' => $token->getUserIdentifier(),
|
||||
]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user