use ctx.Handle to handle 404 page

This commit is contained in:
FuXiaoHei 2014-03-23 13:12:55 +08:00
parent ad31893bbb
commit 47493a0191
5 changed files with 34 additions and 20 deletions

View file

@ -301,7 +301,7 @@ func Activate(ctx *middleware.Context) {
if len(code) == 0 {
ctx.Data["IsActivatePage"] = true
if ctx.User.IsActive {
ctx.Error(404)
ctx.Handle(404, "user.Activate", nil)
return
}
// Resend confirmation e-mail.