MotechLoginErrorJSONHandler

public class MotechLoginErrorJSONHandler extends ExceptionMappingAuthenticationFailureHandler

Class is responsible for checking login error responses, and returning a JSON response rather than a redirect if the response type is Ajax

Methods

onAuthenticationFailure

public void onAuthenticationFailure(HttpServletRequest request, HttpServletResponse response, AuthenticationException exception)