From 9888af431ec5935f6f696f3daf8406d3a0f2e9f2 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Tue, 4 Jul 2023 11:56:55 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E9=80=80=E5=87=BA=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E8=BF=94=E5=9B=9EDTO?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/sdk/controller/LoginController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/controller/LoginController.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/controller/LoginController.java index 4326b08d77..ee07620fc7 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/controller/LoginController.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/controller/LoginController.java @@ -68,8 +68,9 @@ public class LoginController { } @GetMapping(value = "/signout") - public void logout(HttpServletResponse response) throws Exception { + public ResultHolder logout(HttpServletResponse response) throws Exception { SecurityUtils.getSubject().logout(); + return ResultHolder.success("logout success"); } }