From 504582b824d07946c7fb43eb2a8f0aadb15a3677 Mon Sep 17 00:00:00 2001 From: KenmyZhang <13544285662@163.com> Date: Thu, 10 Aug 2017 04:36:59 +0800 Subject: when session id is invalid,the function "revokeSession" should return (#7127) --- api4/user.go | 1 + 1 file changed, 1 insertion(+) (limited to 'api4') diff --git a/api4/user.go b/api4/user.go index 16c1f4a74..b0192592c 100644 --- a/api4/user.go +++ b/api4/user.go @@ -926,6 +926,7 @@ func revokeSession(c *Context, w http.ResponseWriter, r *http.Request) { if sessionId == "" { c.SetInvalidParam("session_id") + return } if err := app.RevokeSessionById(sessionId); err != nil { -- cgit v1.2.3-1-g7c22