Commit d855da61 authored by xiaozhe.chen's avatar xiaozhe.chen

添加修改手机号后台管理接口

parent 50fd68a1
...@@ -38,8 +38,8 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter { ...@@ -38,8 +38,8 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
http.csrf().disable() http.csrf().disable()
.authorizeRequests() .authorizeRequests()
.antMatchers("/tech/health/check").permitAll() .antMatchers("/tech/health/check").permitAll()
.antMatchers("/login").permitAll() .antMatchers("/user/login").permitAll()
.antMatchers("/logout-success").permitAll() .antMatchers("/user/logout-success").permitAll()
/*test*/ /*test*/
.antMatchers("/test/**").permitAll() .antMatchers("/test/**").permitAll()
.antMatchers("/user/**").permitAll() .antMatchers("/user/**").permitAll()
...@@ -48,7 +48,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter { ...@@ -48,7 +48,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
.requestMatchers(CorsUtils::isPreFlightRequest).permitAll() .requestMatchers(CorsUtils::isPreFlightRequest).permitAll()
.and().sessionManagement().maximumSessions(1).maxSessionsPreventsLogin(true) .and().sessionManagement().maximumSessions(1).maxSessionsPreventsLogin(true)
.and().and().logout().invalidateHttpSession(true).clearAuthentication(true) .and().and().logout().invalidateHttpSession(true).clearAuthentication(true)
.logoutSuccessUrl("/logout-success").deleteCookies(Constant.COOKIE_NAME) .logoutSuccessUrl("/user/logout-success").deleteCookies(Constant.COOKIE_NAME)
.and(); .and();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment