mirror of https://github.com/halo-dev/halo
Refactor admin authentication failure handler
parent
f4611a3478
commit
8d82a03e90
|
@ -1,7 +1,13 @@
|
||||||
package cc.ryanc.halo.security.handler;
|
package cc.ryanc.halo.security.handler;
|
||||||
|
|
||||||
|
import cc.ryanc.halo.exception.HaloException;
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
|
|
||||||
|
import javax.servlet.ServletException;
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.io.IOException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Authentication failure handler.
|
* Authentication failure handler.
|
||||||
*
|
*
|
||||||
|
@ -13,8 +19,9 @@ public class AdminAuthenticationFailureHandler extends DefaultAuthenticationFail
|
||||||
super(productionEnv, objectMapper);
|
super(productionEnv, objectMapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
// @Override
|
@Override
|
||||||
// public void onFailure(HttpServletRequest request, HttpServletResponse response, HaloException exception) throws IOException, ServletException {
|
public void onFailure(HttpServletRequest request, HttpServletResponse response, HaloException exception) throws IOException, ServletException {
|
||||||
// // TODO handler the admin authentication failure.
|
// TODO handler the admin authentication failure.
|
||||||
// }
|
super.onFailure(request, response, exception);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue