aboutsummaryrefslogtreecommitdiff
path: root/routers/dashboard.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/dashboard.go')
-rw-r--r--routers/dashboard.go4
1 files changed, 2 insertions, 2 deletions
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