mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
when session id is invalid,the function "revokeSession" should return (#7127)
This commit is contained in:
committed by
Christopher Speller
parent
ab13de96a0
commit
504582b824
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user