feat: 增加关闭验证码的功能

增加关闭验证码的功能
This commit is contained in:
胡少翔
2024-09-18 10:56:55 +08:00
parent 7a5f4f13e7
commit b00b3c6868
8 changed files with 45 additions and 2 deletions

View File

@@ -68,7 +68,7 @@ public class SecurityConfig {
// 限流过滤器
http.addFilterBefore(new RateLimiterFilter(redisTemplate, configService), UsernamePasswordAuthenticationFilter.class);
// 验证码校验过滤器
http.addFilterBefore(new CaptchaValidationFilter(redisTemplate, codeGenerator), UsernamePasswordAuthenticationFilter.class);
http.addFilterBefore(new CaptchaValidationFilter(redisTemplate, codeGenerator,configService), UsernamePasswordAuthenticationFilter.class);
// JWT 校验过滤器
http.addFilterBefore(new JwtValidationFilter(redisTemplate,securityProperties.getJwt().getKey()), UsernamePasswordAuthenticationFilter.class);