Skip to content

Commit

Permalink
LPD-28319 Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
brianchandotcom committed Oct 10, 2024
1 parent d1e9237 commit ae9620a
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.Objects;
import java.util.Set;

import javax.servlet.FilterChain;
Expand Down Expand Up @@ -373,12 +374,10 @@ private boolean _isDigestModified(HttpSession httpSession)
return false;
}

String digest = (String)httpSession.getAttribute(
WebKeys.USER_DIGEST);

user = UserLocalServiceUtil.getUser(user.getUserId());

return !StringUtil.equals(digest, user.getDigest());
return !Objects.equals(
user.getDigest(), httpSession.getAttribute(WebKeys.USER_DIGEST));
}

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

0 comments on commit ae9620a

Please sign in to comment.