addExclude /auth/register
This commit is contained in:
@@ -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);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user