From f31108b7c4ae9800c4142bb83ae89d00ab865f92 Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Thu, 28 Apr 2016 17:14:19 -0700 Subject: Fixing cookie --- api/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3-1-g7c22