Fix bug where class should delegate to setDetails method - not set the details directly.

This commit is contained in:
Ben Alex 2004-12-01 02:09:15 +00:00
parent ac3d3483b3
commit 699f97929a
1 changed files with 3 additions and 1 deletions

View File

@ -77,7 +77,9 @@ public class AuthenticationProcessingFilter extends AbstractProcessingFilter {
UsernamePasswordAuthenticationToken authRequest = new UsernamePasswordAuthenticationToken(username, UsernamePasswordAuthenticationToken authRequest = new UsernamePasswordAuthenticationToken(username,
password); password);
authRequest.setDetails(request.getRemoteAddr());
// Allow subclasses to set the "details" property
setDetails(request, authRequest);
return this.getAuthenticationManager().authenticate(authRequest); return this.getAuthenticationManager().authenticate(authRequest);
} }