diff --git a/src/main/java/org/gcube/portal/oidc/lr62/OpenIdConnectAutoLogin.java b/src/main/java/org/gcube/portal/oidc/lr62/OpenIdConnectAutoLogin.java index e7bf8c0..9badbac 100644 --- a/src/main/java/org/gcube/portal/oidc/lr62/OpenIdConnectAutoLogin.java +++ b/src/main/java/org/gcube/portal/oidc/lr62/OpenIdConnectAutoLogin.java @@ -125,9 +125,9 @@ public class OpenIdConnectAutoLogin extends BaseAutoLogin { log.info("Can't retrieve user's avatar from Keycloak: " + e.getLocalizedMessage()); } if (userAvatar != null) { - UserServiceUtil.updatePortrait(user.getUserId(), userAvatar); + UserLocalServiceUtil.updatePortrait(user.getUserId(), userAvatar); } else { - UserServiceUtil.deletePortrait(user.getUserId()); + UserLocalServiceUtil.deletePortrait(user.getUserId()); } } catch (SystemException | PortalException e) { throw new RuntimeException(e);