use slf4j instead Apache Commons Logging in CustomAuthenticationFailureHandler

This commit is contained in:
Michael Vorburger.ch
2019-07-04 08:44:30 +02:00
committed by Michael Vorburger ⛑️
parent e478b02931
commit d3e977cc99
@@ -25,8 +25,8 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.web.DefaultRedirectStrategy;
import org.springframework.security.web.RedirectStrategy;
@@ -37,7 +37,7 @@ import org.springframework.util.Assert;
public class CustomAuthenticationFailureHandler implements AuthenticationFailureHandler {
protected final Log logger = LogFactory.getLog(getClass());
protected final Logger logger = LoggerFactory.getLogger(getClass());
private String defaultFailureUrl;
private boolean forwardToDestination = false;
@@ -140,4 +140,4 @@ public class CustomAuthenticationFailureHandler implements AuthenticationFailure
public void setAllowSessionCreation(final boolean allowSessionCreation) {
this.allowSessionCreation = allowSessionCreation;
}
}
}