fix "password is empty" on only-white-spaces password
This commit is contained in:
parent
45d4a8b453
commit
80a7821452
@ -73,7 +73,7 @@ public class RestLoginProcessingFilter extends AbstractAuthenticationProcessingF
|
||||
throw new AuthenticationServiceException("Invalid login request payload");
|
||||
}
|
||||
|
||||
if (StringUtils.isBlank(loginRequest.getUsername()) || StringUtils.isBlank(loginRequest.getPassword())) {
|
||||
if (StringUtils.isBlank(loginRequest.getUsername()) || StringUtils.isEmpty(loginRequest.getPassword())) {
|
||||
throw new AuthenticationServiceException("Username or Password not provided");
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user