public class LoginFailureHandlerImpl extends Object implements LoginFailureHandler
LoginFailureHandler
, which redirects the
response to a target URL or 401 is sent if there's no target URL.Constructor and Description |
---|
LoginFailureHandlerImpl() |
Modifier and Type | Method and Description |
---|---|
protected String |
getTargetUrl() |
void |
handle(org.craftercms.commons.http.RequestContext context,
AuthenticationException e)
Redirects the response to target URL if target URL is not empty.
|
protected void |
sendError(AuthenticationException e,
org.craftercms.commons.http.RequestContext context) |
void |
setTargetUrl(String targetUrl) |
protected String targetUrl
public void setTargetUrl(String targetUrl)
protected String getTargetUrl()
public void handle(org.craftercms.commons.http.RequestContext context, AuthenticationException e) throws SecurityProviderException, IOException
handle
in interface LoginFailureHandler
context
- the request contexte
- the exception that caused the login to fail.SecurityProviderException
IOException
protected void sendError(AuthenticationException e, org.craftercms.commons.http.RequestContext context) throws IOException
IOException
Copyright © 2023 CrafterCMS. All rights reserved.