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 5b6bf5a..3347bba 100644 --- a/src/main/java/de/scimeda/keycloak/events/logging/LastLoginEventListenerProvider.java +++ b/src/main/java/de/scimeda/keycloak/events/logging/LastLoginEventListenerProvider.java @@ -41,7 +41,7 @@ public class LastLoginEventListenerProvider implements EventListenerProvider { if (userAttrs.containsKey("last-login")) { List userLastLogin = userAttrs.get("last-login"); if (userLastLogin != null && !userLastLogin.isEmpty()) { - user.setSingleAttribute("prior-login", userLastLogin.get(0); + user.setSingleAttribute("prior-login", userLastLogin.get(0)); } }