diff options
author | FuXiaoHei <fuxiaohei@hexiaz.com> | 2014-03-23 13:12:55 +0800 |
---|---|---|
committer | FuXiaoHei <fuxiaohei@hexiaz.com> | 2014-03-23 13:12:55 +0800 |
commit | 47493a0191f3de8aa4e80bce1911f14623cfa46a (patch) | |
tree | 7895ecc10148164c9cf34ec38eb4f178b9c9750f /routers/user | |
parent | ad31893bbbb1479f6801235ddca44b5bae2cc5c2 (diff) | |
download | gitea-47493a0191f3de8aa4e80bce1911f14623cfa46a.tar.gz gitea-47493a0191f3de8aa4e80bce1911f14623cfa46a.zip |
use ctx.Handle to handle 404 page
Diffstat (limited to 'routers/user')
-rw-r--r-- | routers/user/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/user/user.go b/routers/user/user.go index c34b529ec3..a0321f187b 100644 --- a/routers/user/user.go +++ b/routers/user/user.go @@ -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. |