I want to create custom user checker to validate login action against last accepted eula. \' Idea is quite simple, there will be many versions of eula and user can\'
Why not attach event listener to the kernel.request event and watch if the current logged user has accepted the latest EULA?
To get the current user you can use something like this:
$securityContext = $this->container->get('security.context');
if (!$securityContext) {
return;
}
$user = $securityContext->getToken()->getUser();