Commit 07456ef280b5c7ba083ad34d976348376f52bcc1

Authored by 潘钊
1 parent e149813a

update

src/main/java/com/bsth/filter/AccessLogFilter.java
@@ -38,7 +38,7 @@ public class AccessLogFilter extends BaseFilter { @@ -38,7 +38,7 @@ public class AccessLogFilter extends BaseFilter {
38 HttpServletResponse response, FilterChain chain) 38 HttpServletResponse response, FilterChain chain)
39 throws IOException, ServletException { 39 throws IOException, ServletException {
40 40
41 - String username = /*SecurityUtils.getCurrentUser().getName()*/"test"; //等集成shiro之后再取 41 + String username = SecurityUtils.getCurrentUser().getName();
42 String jsessionId = request.getRequestedSessionId(); 42 String jsessionId = request.getRequestedSessionId();
43 String ip = IpUtils.getIpAddr(request); 43 String ip = IpUtils.getIpAddr(request);
44 String userAgent = request.getHeader("User-Agent"); 44 String userAgent = request.getHeader("User-Agent");
src/main/java/com/bsth/filter/BaseFilter.java
@@ -23,7 +23,7 @@ public abstract class BaseFilter implements Filter { @@ -23,7 +23,7 @@ public abstract class BaseFilter implements Filter {
23 /** 23 /**
24 * 白名单 24 * 白名单
25 */ 25 */
26 - private String[] whiteListURLs = { Constants.LOGIN_PAGE, 26 + private String[] whiteListURLs = { Constants.LOGIN_PAGE,Constants.CAPTCHA,
27 Constants.ASSETS_URL, Constants.FAVICON_URL, Constants.METRONIC_URL, Constants.LOGIN, Constants.LOGIN_FAILURE, Constants.UPSTREAM_URL, Constants.XD_CHILD_PAGES, Constants.XD_TEMPS }; 27 Constants.ASSETS_URL, Constants.FAVICON_URL, Constants.METRONIC_URL, Constants.LOGIN, Constants.LOGIN_FAILURE, Constants.UPSTREAM_URL, Constants.XD_CHILD_PAGES, Constants.XD_TEMPS };
28 28
29 @Override 29 @Override