summaryrefslogtreecommitdiffstats
path: root/routers/home.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/home.go')
-rw-r--r--routers/home.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/routers/home.go b/routers/home.go
index 4f7abea7a3..5ea3e2a027 100644
--- a/routers/home.go
+++ b/routers/home.go
@@ -17,7 +17,12 @@ const (
func Home(ctx *middleware.Context) {
if ctx.IsSigned {
- user.Dashboard(ctx)
+ if !ctx.User.IsActive && setting.Service.RegisterEmailConfirm {
+ ctx.Data["Title"] = ctx.Tr("auth.active_your_account")
+ ctx.HTML(200, user.ACTIVATE)
+ } else {
+ user.Dashboard(ctx)
+ }
return
}