summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenmyZhang <13544285662@163.com>2017-08-10 04:36:59 +0800
committerChristopher Speller <crspeller@gmail.com>2017-08-09 13:36:59 -0700
commit504582b824d07946c7fb43eb2a8f0aadb15a3677 (patch)
treeb599e70df83834049e5676b2ad2654d346ceb7a7
parentab13de96a053123e6f73ffddb763e0fe96e0f6ed (diff)
downloadchat-504582b824d07946c7fb43eb2a8f0aadb15a3677.tar.gz
chat-504582b824d07946c7fb43eb2a8f0aadb15a3677.tar.bz2
chat-504582b824d07946c7fb43eb2a8f0aadb15a3677.zip
when session id is invalid,the function "revokeSession" should return (#7127)
-rw-r--r--api4/user.go1
1 files changed, 1 insertions, 0 deletions
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 {