Browse Source

add 验证码

tags/V2.2.0
chenjiandong 2 years ago
parent
commit
3b2a535249
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      tuoheng_oidc_server/src/main/java/com/tuoheng/config/SecurityConfig.java

+ 0
- 1
tuoheng_oidc_server/src/main/java/com/tuoheng/config/SecurityConfig.java View File

@@ -87,7 +87,6 @@ public class SecurityConfig {
SecurityFilterChain defaultSecurityFilterChain(HttpSecurity http) throws Exception {
//http.addFilterBefore(verifyCodeFilter, UsernamePasswordAuthenticationFilter.class);
http.addFilterAt(new VerifyCodeFilter(),UsernamePasswordAuthenticationFilter.class);
http.sessionManagement().disable();
http.csrf().disable()
.authorizeHttpRequests((authorize) -> authorize
.antMatchers("/toLogin", "/getHealth", "/static/**", "/vercode").permitAll()

Loading…
Cancel
Save