From 688ec6ecbdf0e1c450aa93fdc4d760c4ae63a73f Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 25 May 2014 20:11:25 -0400 Subject: Fixed #209 --- routers/dashboard.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'routers/dashboard.go') diff --git a/routers/dashboard.go b/routers/dashboard.go index 94324b15..438d0379 100644 --- a/routers/dashboard.go +++ b/routers/dashboard.go @@ -6,8 +6,8 @@ package routers import ( "github.com/gogits/gogs/models" - "github.com/gogits/gogs/modules/base" "github.com/gogits/gogs/modules/middleware" + "github.com/gogits/gogs/modules/setting" "github.com/gogits/gogs/routers/user" ) @@ -18,7 +18,7 @@ func Home(ctx *middleware.Context) { } // Check auto-login. - userName := ctx.GetCookie(base.CookieUserName) + userName := ctx.GetCookie(setting.CookieUserName) if len(userName) != 0 { ctx.Redirect("/user/login") return -- cgit v1.2.3