|
@ -18,7 +18,7 @@ import java.util.List; |
|
|
/** |
|
|
/** |
|
|
* @author nidaren |
|
|
* @author nidaren |
|
|
*/ |
|
|
*/ |
|
|
@WebFilter(filterName = "ContextFilter", urlPatterns = {"/api/game/auth"}) |
|
|
@WebFilter(filterName = "ContextFilter", urlPatterns = {"/api/game/*"}) |
|
|
public class LoginFilter implements Filter { |
|
|
public class LoginFilter implements Filter { |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -55,6 +55,9 @@ public class LoginFilter implements Filter { |
|
|
pass = true; |
|
|
pass = true; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
if (path.startsWith("/api/game/matrix/")) { |
|
|
|
|
|
pass = true; |
|
|
|
|
|
} |
|
|
if (pass) { |
|
|
if (pass) { |
|
|
RequestContext.init(httpRequest, (HttpServletResponse) response, userId); |
|
|
RequestContext.init(httpRequest, (HttpServletResponse) response, userId); |
|
|
chain.doFilter(request, response); |
|
|
chain.doFilter(request, response); |
|
|