fix(security): emit authentication success events
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -249,6 +249,14 @@ class FirewallService
|
||||
}
|
||||
}
|
||||
|
||||
public function logAuthenticationSuccess(AuthenticationSucceededEvent $event): void
|
||||
{
|
||||
$log = $this->securityLog($event, $this->requestContext->current());
|
||||
if ($log !== null) {
|
||||
$this->store->createLog($log);
|
||||
}
|
||||
}
|
||||
|
||||
private function securityLog(
|
||||
SecurityEventInterface $event,
|
||||
?Request $request = null,
|
||||
|
||||
Reference in New Issue
Block a user