summaryrefslogtreecommitdiffstats
path: root/modules/middleware
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-19 12:50:44 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-19 12:50:44 -0400
commit35d473f04ac79990a35499fbf3c4998170e655e1 (patch)
treefca64b6679336766ffc6965f3f09974c9d3da348 /modules/middleware
parentc6e12d256833095d76bbb5755261507ecbdaada9 (diff)
downloadgitea-35d473f04ac79990a35499fbf3c4998170e655e1.tar.gz
gitea-35d473f04ac79990a35499fbf3c4998170e655e1.zip
Finish verify email
Diffstat (limited to 'modules/middleware')
-rw-r--r--modules/middleware/auth.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/middleware/auth.go b/modules/middleware/auth.go
index ed847dd83c..d45a21e988 100644
--- a/modules/middleware/auth.go
+++ b/modules/middleware/auth.go
@@ -6,6 +6,8 @@ package middleware
import (
"github.com/codegangsta/martini"
+
+ "github.com/gogits/gogs/modules/base"
)
// SignInRequire requires user to sign in.
@@ -16,10 +18,10 @@ func SignInRequire(redirect bool) martini.Handler {
ctx.Redirect("/")
}
return
- } else if !ctx.User.IsActive {
- // ctx.Data["Title"] = "Activate Your Account"
- // ctx.Render.HTML(200, "user/active", ctx.Data)
- // return
+ } else if !ctx.User.IsActive && base.Service.RegisterEmailConfirm {
+ ctx.Data["Title"] = "Activate Your Account"
+ ctx.Render.HTML(200, "user/active", ctx.Data)
+ return
}
}
}