when session id is invalid,the function "revokeSession" should return (#7127)

This commit is contained in:
KenmyZhang
2017-08-10 04:36:59 +08:00
committed by Christopher Speller
parent ab13de96a0
commit 504582b824

View File

@@ -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 {