From 66b5b80cf8f588ed8bdbfb116fc98a9210b42e37 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Mon, 08 Jun 2020 10:41:22 +0800
Subject: [PATCH] modify

---
 src/main/java/com/xcong/excoin/configurations/security/CustomAccessDeniedHandler.java |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/xcong/excoin/configurations/security/CustomAccessDeniedHandler.java b/src/main/java/com/xcong/excoin/configurations/security/CustomAccessDeniedHandler.java
index e59b286..d0bf50e 100644
--- a/src/main/java/com/xcong/excoin/configurations/security/CustomAccessDeniedHandler.java
+++ b/src/main/java/com/xcong/excoin/configurations/security/CustomAccessDeniedHandler.java
@@ -21,5 +21,6 @@
     public void handle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, AccessDeniedException e) throws IOException, ServletException {
         Result result = Result.loginFail("fail");
         httpServletResponse.getWriter().write(new ObjectMapper().writeValueAsString(result));
+        httpServletResponse.setStatus(HttpServletResponse.SC_FORBIDDEN);
     }
 }

--
Gitblit v1.9.1