diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-05-06 12:08:49 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-05-06 12:08:49 -0400 |
commit | d2f9fd52fe8b0da6f23775f242660329fcef6421 (patch) | |
tree | e9a0b055d2bda65613f346fce256be9642ea1356 /api/user.go | |
parent | 204109b4b9a62479181396523d080e43fb5d48db (diff) | |
download | chat-d2f9fd52fe8b0da6f23775f242660329fcef6421.tar.gz chat-d2f9fd52fe8b0da6f23775f242660329fcef6421.tar.bz2 chat-d2f9fd52fe8b0da6f23775f242660329fcef6421.zip |
Fixing /logout command (#2908)
Diffstat (limited to 'api/user.go')
-rw-r--r-- | api/user.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/api/user.go b/api/user.go index 1331bd3da..de4242f24 100644 --- a/api/user.go +++ b/api/user.go @@ -764,10 +764,7 @@ func Logout(c *Context, w http.ResponseWriter, r *http.Request) { c.LogAudit("") c.RemoveSessionCookie(w, r) if c.Session.Id != "" { - if result := <-Srv.Store.Session().Remove(c.Session.Id); result.Err != nil { - c.Err = result.Err - return - } + RevokeSessionById(c, c.Session.Id) } } |