summaryrefslogtreecommitdiffstats
path: root/api/user.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2016-04-28 17:14:19 -0700
committer=Corey Hulen <corey@hulen.com>2016-04-28 17:14:19 -0700
commitf31108b7c4ae9800c4142bb83ae89d00ab865f92 (patch)
treebf00346bc0abf254d4419611cac654e7020b9535 /api/user.go
parent62901defaebb8f3524bdfcad86b2576cfd9fe587 (diff)
downloadchat-f31108b7c4ae9800c4142bb83ae89d00ab865f92.tar.gz
chat-f31108b7c4ae9800c4142bb83ae89d00ab865f92.tar.bz2
chat-f31108b7c4ae9800c4142bb83ae89d00ab865f92.zip
Fixing cookie
Diffstat (limited to 'api/user.go')
-rw-r--r--api/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/user.go b/api/user.go
index 0962b7cbc..abd34fcab 100644
--- a/api/user.go
+++ b/api/user.go
@@ -713,7 +713,7 @@ func Login(c *Context, w http.ResponseWriter, r *http.Request, user *model.User,
secure := false
if GetProtocol(r) == "https" {
- secure := true
+ secure = true
}
expiresAt := time.Unix(model.GetMillis()/1000+int64(maxAge), 0)