1
0
Fork 0
forked from forgejo/forgejo

Finish verify email

This commit is contained in:
Unknown 2014-03-19 12:50:44 -04:00
parent c6e12d2568
commit 35d473f04a
13 changed files with 182 additions and 62 deletions

View file

@ -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
}
}
}