@Override public Serializable getUserId(Serializable user) { return ensureDelegate().getUserId(user); }
@Override public Serializable getUserId(Serializable user) { return ensureDelegate().getUserId(user); }
public static Serializable getUserId(Subject subject) { PortofinoRealm portofinoRealm = getPortofinoRealm(); Serializable principal = (Serializable) getPrimaryPrincipal(subject); if(portofinoRealm != null) { return portofinoRealm.getUserId(principal); } else { return principal; } }
public static Serializable getUserId(Subject subject) { PortofinoRealm portofinoRealm = getPortofinoRealm(); Serializable principal = (Serializable) getPrimaryPrincipal(subject); if(portofinoRealm != null) { return portofinoRealm.getUserId(principal); } else { return principal; } }
logger.warn( "User {} changed password but could not be subsequently authenticated", portofinoRealm.getUserId(principal)); logger.warn("User {} password change: Incorrect credentials", portofinoRealm.getUserId(principal)); SessionMessages.addErrorMessage(ElementsThreadLocals.getText("wrong.password")); return new ForwardResolution("/m/base/actions/user/changePassword.jsp"); } catch (Exception e) { logger.error("Password update failed for user " + portofinoRealm.getUserId(principal), e); SessionMessages.addErrorMessage(ElementsThreadLocals.getText("password.change.failed")); return new ForwardResolution("/m/base/actions/user/changePassword.jsp");