From ba5c7ea7719abbef792e8b9897dcfadf4d54bbab Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 7 Mar 2014 16:05:18 -0500 Subject: Add SignInRequire and SignOutRequire middleware --- routers/dashboard.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'routers/dashboard.go') diff --git a/routers/dashboard.go b/routers/dashboard.go index 8eda9cf2..a7544500 100644 --- a/routers/dashboard.go +++ b/routers/dashboard.go @@ -5,14 +5,16 @@ package routers import ( - "github.com/gogits/gogs/modules/base" - "github.com/gogits/gogs/routers/user" "github.com/martini-contrib/render" "github.com/martini-contrib/sessions" + + "github.com/gogits/gogs/modules/auth" + "github.com/gogits/gogs/modules/base" + "github.com/gogits/gogs/routers/user" ) func Home(r render.Render, data base.TmplData, session sessions.Session) { - if user.IsSignedIn(session) { + if auth.IsSignedIn(session) { user.Dashboard(r, data, session) return } -- cgit v1.2.3