From ba3e774b38372035a4a5454a9d25ab9f548abc04 Mon Sep 17 00:00:00 2001 From: doobry Date: Mon, 6 Nov 2023 10:23:26 +0100 Subject: [PATCH] Subscribe to correct LoginEvent name This fixes the `last_login_time` record being updated when authenticating through the `app:users:checkpassword` command. --- src/EventListener/LoginListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EventListener/LoginListener.php b/src/EventListener/LoginListener.php index a82b073d..0366e903 100644 --- a/src/EventListener/LoginListener.php +++ b/src/EventListener/LoginListener.php @@ -62,7 +62,7 @@ public static function getSubscribedEvents(): array { return [ SecurityEvents::INTERACTIVE_LOGIN => 'onSecurityInteractiveLogin', - LoginEvent::class => 'onLogin', + LoginEvent::NAME => 'onLogin', ]; } }