diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-19 09:24:02 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-19 09:24:02 -0400 |
commit | a2fbb246151ce722a30d932dd73a9ecc76b020e9 (patch) | |
tree | a356ce201ddf77a0b9c2511c36781735a4ce515d /modules/middleware/auth.go | |
parent | de087c7b4a31cb0643d5432ec9d6b26e208baff2 (diff) | |
download | gitea-a2fbb246151ce722a30d932dd73a9ecc76b020e9.tar.gz gitea-a2fbb246151ce722a30d932dd73a9ecc76b020e9.zip |
Add active page
Diffstat (limited to 'modules/middleware/auth.go')
-rw-r--r-- | modules/middleware/auth.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/middleware/auth.go b/modules/middleware/auth.go index cf7bee4d22..33321d6e41 100644 --- a/modules/middleware/auth.go +++ b/modules/middleware/auth.go @@ -16,6 +16,10 @@ func SignInRequire(redirect bool) martini.Handler { ctx.Render.Redirect("/") } return + } else if !ctx.User.IsActive { + ctx.Data["Title"] = "Activate Your Account" + ctx.Render.HTML(200, "user/active", ctx.Data) + return } } } |