1
0
mirror of synced 2026-05-22 21:33:16 +00:00

Polish UsernamePasswordAuthenticationFilter method

Closes gh-10970
This commit is contained in:
ShinDongHun1
2022-03-15 21:39:46 +09:00
committed by Eleftheria Stein
parent cf29bf996c
commit 7955e5ac52
@@ -75,8 +75,7 @@ public class UsernamePasswordAuthenticationFilter extends AbstractAuthentication
throw new AuthenticationServiceException("Authentication method not supported: " + request.getMethod());
}
String username = obtainUsername(request);
username = (username != null) ? username : "";
username = username.trim();
username = (username != null) ? username.trim() : "";
String password = obtainPassword(request);
password = (password != null) ? password : "";
UsernamePasswordAuthenticationToken authRequest = UsernamePasswordAuthenticationToken.unauthenticated(username,