addExclude /auth/register

This commit is contained in:
wol
2025-09-18 19:51:26 +08:00
parent 7a961d63a6
commit 0a8c05e1df

View File

@@ -40,7 +40,7 @@ public class SaTokenMvcConfiguration implements WebMvcConfigurer {
public SaServletFilter getGlobleSaServletFilter() {
return new SaServletFilter()
.addInclude("/**").addExclude("/favicon.ico")
.addExclude("/auth/getConfig", "/captcha/code")
.addExclude("/auth/getConfig", "/captcha/code", "/auth/register")
.setAuth(obj -> {
SaRouter.match("/**", "/auth/login", StpUtil::checkLogin);
})