注册页面店铺选择问题修复
This commit is contained in:
@@ -57,9 +57,10 @@ public class AuthInterceptor implements HandlerInterceptor {
|
||||
}
|
||||
|
||||
private boolean isWhitelistedPath(String path) {
|
||||
return path.contains("/user/login") ||
|
||||
path.contains("/user/register") ||
|
||||
path.contains("/user/refresh-token") ||
|
||||
path.contains("/shop/list/simple");
|
||||
return path.contains("/api/user/login") ||
|
||||
path.contains("/api/user/register") ||
|
||||
path.contains("/api/user/refresh-token") ||
|
||||
path.contains("/api/shop/list/simple") ||
|
||||
path.contains("/health");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,11 +16,12 @@ public class WebMvcConfig implements WebMvcConfigurer {
|
||||
registry.addInterceptor(authInterceptor)
|
||||
.addPathPatterns("/**")
|
||||
.excludePathPatterns(
|
||||
"/user/login",
|
||||
"/user/register",
|
||||
"/user/refresh-token",
|
||||
"/shop/list/simple",
|
||||
"/error"
|
||||
"/api/user/login",
|
||||
"/api/user/register",
|
||||
"/api/user/refresh-token",
|
||||
"/api/shop/list/simple",
|
||||
"/error",
|
||||
"/health/**"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user