Refactor admin authentication failure handler

pull/137/head
johnniang 2019-03-28 10:36:52 +08:00
parent f4611a3478
commit 8d82a03e90
1 changed files with 11 additions and 4 deletions

View File

@ -1,7 +1,13 @@
package cc.ryanc.halo.security.handler;
import cc.ryanc.halo.exception.HaloException;
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.
*
@ -13,8 +19,9 @@ public class AdminAuthenticationFailureHandler extends DefaultAuthenticationFail
super(productionEnv, objectMapper);
}
// @Override
// public void onFailure(HttpServletRequest request, HttpServletResponse response, HaloException exception) throws IOException, ServletException {
// // TODO handler the admin authentication failure.
// }
@Override
public void onFailure(HttpServletRequest request, HttpServletResponse response, HaloException exception) throws IOException, ServletException {
// TODO handler the admin authentication failure.
super.onFailure(request, response, exception);
}
}