summaryrefslogtreecommitdiffstats
path: root/routers/home.go
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-08-09 21:02:00 -0700
committerUnknwon <joe2010xtmf@163.com>2014-08-09 21:02:00 -0700
commit7af7584d25f48309a70083c30805ebb8454611f0 (patch)
treef1f20d5fafe8f023392ce35931221ba2cee2fe35 /routers/home.go
parent5605af973b440add79b1c32c911bee03fa821a4e (diff)
downloadgitea-7af7584d25f48309a70083c30805ebb8454611f0.tar.gz
gitea-7af7584d25f48309a70083c30805ebb8454611f0.zip
Finish new reset password, etc.
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
}