cloudroam
2024-12-30 5d8f5f3defe929b8854c84651a3f0fdb650c362a
src/main/java/com/mzl/flower/config/security/provider/UserIdAuthenticationProvider.java
@@ -20,13 +20,13 @@
    @Override
    protected void additionalAuthenticationChecks(UserDetails userDetails, Authentication authentication) throws AuthenticationException {
        if (authentication.getCredentials() == null) {
            log.debug("Authentication failed: no credentials provided");
            throw new BadCredentialsException(messages.getMessage(
                    "AbstractUserDetailsAuthenticationProvider.badCredentials",
                    "Bad credentials"));
        }
//        if (authentication.getCredentials() == null) {
//            log.debug("Authentication failed: no credentials provided");
//
//            throw new BadCredentialsException(messages.getMessage(
//                    "AbstractUserDetailsAuthenticationProvider.badCredentials",
//                    "Bad credentials"));
//        }
    }
    @Override