|
|
@@ -83,7 +83,7 @@ public class SecurityConfig {
|
|
|
http.authorizeHttpRequests(auth -> auth
|
|
|
.requestMatchers("/swagger-ui/**", "/v3/api-docs/**", "/swagger-resources/**", "/webjars/**", "/favicon.ico",
|
|
|
"/auth/login","/auth/captchaById","/auth/register","/sendSmsCode","/appLogin","/smsCodeLogin","/auth/publicKeyExchange","/appAuth/smsCodeLogin","/send/sendSmsCode",
|
|
|
- "/appAuth/appLogin","/auth/sendSmsCode").permitAll()
|
|
|
+ "/appAuth/appLogin","/auth/sendSmsCode","/auth/forgotPassword").permitAll()
|
|
|
.anyRequest().authenticated() // 其他接口需认证
|
|
|
)
|
|
|
// .formLogin((form) -> form
|