<?php
declare(strict_types=1);
namespace App\EventListener;
use App\Entity\User\User;
use App\Exception\BannedUserException;
use Lexik\Bundle\JWTAuthenticationBundle\Event\JWTCreatedEvent;
use Lexik\Bundle\JWTAuthenticationBundle\Exception\MissingTokenException;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Security\Core\Security;
class AuthListener
{
public function onAuthenticationSuccess(JWTCreatedEvent $event)
{
// if (!empty($event->getUser())) {
// if (!($event->getUser()->isVerified())) {
// throw new BannedUserException('Пользователь заблокирован');
// }
// }
}
}