From 291b2aa3f3bca8f6e1e28c30b61735574657bbbf Mon Sep 17 00:00:00 2001 From: tbudras Date: Mon, 14 Mar 2022 11:12:19 +0100 Subject: [PATCH] change order of arguments bc of deprecation --- .../keycloak/events/logging/LastLoginEventListenerProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/scimeda/keycloak/events/logging/LastLoginEventListenerProvider.java b/src/main/java/de/scimeda/keycloak/events/logging/LastLoginEventListenerProvider.java index 8f43d9c..6457d6f 100644 --- a/src/main/java/de/scimeda/keycloak/events/logging/LastLoginEventListenerProvider.java +++ b/src/main/java/de/scimeda/keycloak/events/logging/LastLoginEventListenerProvider.java @@ -33,7 +33,7 @@ public class LastLoginEventListenerProvider implements EventListenerProvider { // log.infof("## NEW %s EVENT", event.getType()); if (EventType.LOGIN.equals(event.getType())) { RealmModel realm = this.model.getRealm(event.getRealmId()); - UserModel user = this.session.users().getUserById(event.getUserId(), realm); + UserModel user = this.session.users().getUserById(realm, event.getUserId()); if (user != null) { log.info("Updating last login status for user: " + event.getUserId());