forked from wallabag/wallabag
Replace AuthenticationEvents::AUTHENTICATION_FAILURE by LoginFailureEvent
This commit is contained in:
@ -5,7 +5,7 @@ namespace Wallabag\Event\Listener;
|
||||
use Psr\Log\LoggerInterface;
|
||||
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||
use Symfony\Component\HttpFoundation\RequestStack;
|
||||
use Symfony\Component\Security\Core\AuthenticationEvents;
|
||||
use Symfony\Component\Security\Http\Event\LoginFailureEvent;
|
||||
|
||||
class AuthenticationFailureListener implements EventSubscriberInterface
|
||||
{
|
||||
@ -21,7 +21,7 @@ class AuthenticationFailureListener implements EventSubscriberInterface
|
||||
public static function getSubscribedEvents(): array
|
||||
{
|
||||
return [
|
||||
AuthenticationEvents::AUTHENTICATION_FAILURE => 'onAuthenticationFailure',
|
||||
LoginFailureEvent::class => 'onAuthenticationFailure',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user