增加自主注册判断与前端显示

This commit is contained in:
nilm
2021-11-19 16:48:33 +08:00
parent 91ad85aec1
commit 4f0cd8f54a
4 changed files with 32 additions and 6 deletions

View File

@ -97,7 +97,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
// 过滤请求
.authorizeRequests()
// 对于登录login 注册register 验证码captchaImage 允许匿名访问
.antMatchers("/login", "/register", "/captchaImage").anonymous()
.antMatchers("/login", "/register", "/captchaImage","/registerSwitch").anonymous()
.antMatchers(
HttpMethod.GET,
"/",