MotechLoginErrorHandler

public class MotechLoginErrorHandler extends MotechLoginErrorJSONHandler

Class responsible for increasing user failure login counter. Extends SimpleUrlAuthenticationFailureHandler. It also redirect user to error login page.

See also: org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler

Constructors

MotechLoginErrorHandler

public MotechLoginErrorHandler(String defaultFailureUrl, String userBlockedUrl, String changePasswordBaseUrl)

Methods

onAuthenticationFailure

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