aboutsummaryrefslogtreecommitdiff
path: root/internal/route/home.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/route/home.go')
-rw-r--r--internal/route/home.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/route/home.go b/internal/route/home.go
index 6e8e0a42..d64512c1 100644
--- a/internal/route/home.go
+++ b/internal/route/home.go
@@ -32,7 +32,7 @@ func Home(c *context.Context) {
}
// Check auto-login.
- uname := c.GetCookie(conf.CookieUserName)
+ uname := c.GetCookie(conf.Security.CookieUsername)
if len(uname) != 0 {
c.Redirect(conf.Server.Subpath + "/user/login")
return