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