Этот коммит содержится в:
Christopher Speller
2016-05-06 12:08:49 -04:00
коммит произвёл Joram Wilander
родитель 204109b4b9
Коммит d2f9fd52fe
4 изменённых файлов: 17 добавлений и 12 удалений

Просмотреть файл

@@ -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)
}
}