diff options
author | KenmyZhang <13544285662@163.com> | 2017-08-10 04:36:59 +0800 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-08-09 13:36:59 -0700 |
commit | 504582b824d07946c7fb43eb2a8f0aadb15a3677 (patch) | |
tree | b599e70df83834049e5676b2ad2654d346ceb7a7 /api4/user.go | |
parent | ab13de96a053123e6f73ffddb763e0fe96e0f6ed (diff) | |
download | chat-504582b824d07946c7fb43eb2a8f0aadb15a3677.tar.gz chat-504582b824d07946c7fb43eb2a8f0aadb15a3677.tar.bz2 chat-504582b824d07946c7fb43eb2a8f0aadb15a3677.zip |
when session id is invalid,the function "revokeSession" should return (#7127)
Diffstat (limited to 'api4/user.go')
-rw-r--r-- | api4/user.go | 1 |
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 { |