Skip to content

Commit

Permalink
LPD-28319 same thing
Browse files Browse the repository at this point in the history
  • Loading branch information
brianchandotcom committed Oct 10, 2024
1 parent e8ef85d commit d1e9237
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,16 +369,16 @@ private boolean _isDigestModified(HttpSession httpSession)

User user = (User)httpSession.getAttribute(WebKeys.USER);

if (user != null) {
String digest = (String)httpSession.getAttribute(
WebKeys.USER_DIGEST);
if (user == null) {
return false;
}

user = UserLocalServiceUtil.getUser(user.getUserId());
String digest = (String)httpSession.getAttribute(
WebKeys.USER_DIGEST);

return !StringUtil.equals(digest, user.getDigest());
}
user = UserLocalServiceUtil.getUser(user.getUserId());

return false;
return !StringUtil.equals(digest, user.getDigest());
}

private static final Log _log = LogFactoryUtil.getLog(BaseAuthFilter.class);
Expand Down

0 comments on commit d1e9237

Please sign in to comment.