summaryrefslogtreecommitdiffstats
path: root/routers/web/home.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/home.go')
-rw-r--r--routers/web/home.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/routers/web/home.go b/routers/web/home.go
index ab3fbde2c9..2321b00efe 100644
--- a/routers/web/home.go
+++ b/routers/web/home.go
@@ -54,8 +54,7 @@ func Home(ctx *context.Context) {
}
// Check auto-login.
- uname := ctx.GetSiteCookie(setting.CookieUserName)
- if len(uname) != 0 {
+ if ctx.GetSiteCookie(setting.CookieRememberName) != "" {
ctx.Redirect(setting.AppSubURL + "/user/login")
return
}