From 290074597e55c4226d2908c528a46c2416f69c38 Mon Sep 17 00:00:00 2001 From: threecat-up <60840921+threecat-up@users.noreply.github.com> Date: Fri, 3 Jun 2022 15:17:05 +0800 Subject: [PATCH] Update ManagerFilter.java --- src/com/yj/filter/ManagerFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/yj/filter/ManagerFilter.java b/src/com/yj/filter/ManagerFilter.java index bbdd9e7..5cf90d6 100644 --- a/src/com/yj/filter/ManagerFilter.java +++ b/src/com/yj/filter/ManagerFilter.java @@ -24,7 +24,7 @@ public class ManagerFilter implements Filter { User user = (User) httpServletRequest.getSession().getAttribute("user"); if(user==null) { httpServletRequest.getRequestDispatcher("/pages/user/login.jsp").forward(servletRequest,servletResponse); - } else if(!"yangjie".equals(user.getUsername())){ + } else if(!"admin".equals(user.getUsername())){ httpServletRequest.getRequestDispatcher("/pages/error/errorManager.jsp").forward(servletRequest,servletResponse); }else{ filterChain.doFilter(servletRequest,servletResponse);