Skip to content

Commit

Permalink
Request Reverted
Browse files Browse the repository at this point in the history
  • Loading branch information
remarq committed Jan 17, 2025
1 parent ab917f2 commit c19c533
Show file tree
Hide file tree
Showing 5 changed files with 264 additions and 692 deletions.
4 changes: 3 additions & 1 deletion src/org/calacademy/antweb/util/LoginMgr.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ public static Login getLogin(HttpServletRequest request) {
return getAccessLogin(request);
}
public static Login getAccessLogin(HttpServletRequest request) {
return (Login) request.getSession().getAttribute("accessLogin");
HttpSession session = request.getSession();
if (session == null) return null;
return (Login) session.getAttribute("accessLogin");
}

public static void removeAccessLogin(HttpServletRequest request) {
Expand Down
Loading

0 comments on commit c19c533

Please sign in to comment.