forked from forgejo/forgejo
Finish verify email
This commit is contained in:
parent
c6e12d2568
commit
35d473f04a
13 changed files with 182 additions and 62 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue