Merge branch 'optimize_20230426_server-auth_shiming.sun' into develop

pull/1193/head
lucca 2 years ago
commit 9910f5636f

@ -107,10 +107,9 @@ public class GlobalSecurityConfig extends WebSecurityConfigurerAdapter {
}
/**
* DaoAuthentication
* void configure(AuthenticationManagerBuilder auth)
* hideUserNotFoundExceptions false
* UserNotFoundException
* Injection DaoAuthenticationProvider
* Modify hideUserNotFoundExceptions initial value to false
* Solve the problem of UserNotFoundException don't throw
*/
@Bean
public DaoAuthenticationProvider authenticationProvider() {

@ -117,7 +117,7 @@ public class JWTAuthenticationFilter extends UsernamePasswordAuthenticationFilte
}
/**
*
* Return different echo information to the front end according to different exception types
*/
protected String getMessage(AuthenticationException failed) {
String message = "Server Error";

Loading…
Cancel
Save