update 优化 网关验证码过滤器 路径匹配改为严格匹配

This commit is contained in:
疯狂的狮子Li
2022-07-19 18:44:34 +08:00
parent 3a04eeb8fb
commit cf13ae8818

View File

@@ -44,7 +44,7 @@ public class ValidateCodeFilter extends AbstractGatewayFilterFactory<Object> {
ServerHttpRequest request = exchange.getRequest();
// 非登录/注册请求或验证码关闭,不处理
if (!StringUtils.containsAnyIgnoreCase(request.getURI().getPath(), VALIDATE_URL) || !captchaProperties.getEnabled()) {
if (!StringUtils.equalsAnyIgnoreCase(request.getURI().getPath(), VALIDATE_URL) || !captchaProperties.getEnabled()) {
return chain.filter(exchange);
}