summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-08-18 15:09:01 -0400
committerChristopher Speller <crspeller@gmail.com>2017-08-18 12:09:01 -0700
commite40fd0b3b515be5c7482ca48a4e70f8f61dbd435 (patch)
tree41bdd93db7415f2f8248a665981c507120d00537 /api
parent339b30e1daa2dcae88836fdadbc15fc3c99653dc (diff)
downloadchat-e40fd0b3b515be5c7482ca48a4e70f8f61dbd435.tar.gz
chat-e40fd0b3b515be5c7482ca48a4e70f8f61dbd435.tar.bz2
chat-e40fd0b3b515be5c7482ca48a4e70f8f61dbd435.zip
Remove temporary cookie code (#7218)
Diffstat (limited to 'api')
-rw-r--r--api/context.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/api/context.go b/api/context.go
index 286221092..fe3448ebd 100644
--- a/api/context.go
+++ b/api/context.go
@@ -182,20 +182,6 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
}
- // TEMPORARY CODE FOR 3.9, REMOVE FOR 3.10
- if cookie, err := r.Cookie(model.SESSION_COOKIE_TOKEN); err == nil && c.Session.UserId != "" {
- if _, err = r.Cookie(model.SESSION_COOKIE_USER); err != nil {
- http.SetCookie(w, &http.Cookie{
- Name: model.SESSION_COOKIE_USER,
- Value: c.Session.UserId,
- Path: "/",
- MaxAge: cookie.MaxAge,
- Expires: cookie.Expires,
- Secure: cookie.Secure,
- })
- }
- }
-
if h.isApi || h.isTeamIndependent {
c.setTeamURL(c.GetSiteURLHeader(), false)
c.Path = r.URL.Path