Skip to content

Commit

Permalink
fixed redirect to login page
Browse files Browse the repository at this point in the history
  • Loading branch information
gitorko committed Jul 30, 2015
1 parent 3e14aa0 commit 656c223
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/deem/zkui/filter/AuthFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ public void doFilter(ServletRequest req, ServletResponse res, FilterChain fc) th
HttpSession session = request.getSession();
if (session != null) {
if (session.getAttribute("authName") == null || session.getAttribute("authRole") == null) {
dispatcher = request.getRequestDispatcher("/login");
dispatcher.forward(request, response);
response.sendRedirect("/login");
return;
}

Expand Down

0 comments on commit 656c223

Please sign in to comment.