diff options
Diffstat (limited to 'routers/web/home.go')
-rw-r--r-- | routers/web/home.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/home.go b/routers/web/home.go index ecfecf6e67..b94e3e9eb5 100644 --- a/routers/web/home.go +++ b/routers/web/home.go @@ -54,7 +54,7 @@ func Home(ctx *context.Context) { } // Check auto-login. - uname := ctx.GetCookie(setting.CookieUserName) + uname := ctx.GetSiteCookie(setting.CookieUserName) if len(uname) != 0 { ctx.Redirect(setting.AppSubURL + "/user/login") return |