diff --git a/api4/user.go b/api4/user.go index 16c1f4a740..b0192592c4 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 {