Browse Source

add 验证码

tags/V2.2.0
chenjiandong 1 year 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

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

Loading…
Cancel
Save