summaryrefslogtreecommitdiffstats
path: root/routers/user/auth.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-24 18:49:34 -0500
committerUnknwon <u@gogs.io>2015-11-24 18:49:34 -0500
commit7f9598141bd7b0200d9342f01243228eab3061ba (patch)
treec9e5bf147ba72a7f7eb4968f129e32b444b4682b /routers/user/auth.go
parent56c66ee486b4b8d544201662de62a23f36e6a069 (diff)
downloadgitea-7f9598141bd7b0200d9342f01243228eab3061ba.tar.gz
gitea-7f9598141bd7b0200d9342f01243228eab3061ba.zip
fix #2020
Diffstat (limited to 'routers/user/auth.go')
-rw-r--r--routers/user/auth.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/user/auth.go b/routers/user/auth.go
index 24ed3673e8..3f37b09059 100644
--- a/routers/user/auth.go
+++ b/routers/user/auth.go
@@ -70,7 +70,7 @@ func SignInPost(ctx *middleware.Context, form auth.SignInForm) {
if form.Remember {
days := 86400 * setting.LogInRememberDays
ctx.SetCookie(setting.CookieUserName, u.Name, days, setting.AppSubUrl)
- ctx.SetSuperSecureCookie(base.EncodeMd5(u.Rands+u.Passwd),
+ ctx.SetSuperSecureCookie(base.EncodeMD5(u.Rands+u.Passwd),
setting.CookieRememberName, u.Name, days, setting.AppSubUrl)
}