diff --git a/dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/user/DefaultUserService.java b/dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/user/DefaultUserService.java index d420fbd3e71..c50de1aa82c 100644 --- a/dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/user/DefaultUserService.java +++ b/dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/user/DefaultUserService.java @@ -1076,8 +1076,8 @@ public List getLinkedUserAccounts(@Nonnull User actingUser) { } @Override - public void invalidateUserSessions(String username) { - User user = getUserByUsername(username); + public void invalidateUserSessions(String userUid) { + User user = getUser(userUid); UserDetails userDetails = createUserDetails(user); if (userDetails != null) { List allSessions = sessionRegistry.getAllSessions(userDetails, false);