Finish new reset password, etc.

This commit is contained in:
Unknwon 2014-08-09 21:02:00 -07:00
parent 5605af973b
commit 7af7584d25
16 changed files with 625 additions and 602 deletions

View file

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