diff options
Diffstat (limited to 'api')
-rw-r--r-- | api/user.go | 2 |
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) |