mirror of
https://gitee.com/gitea/gitea
synced 2025-12-25 17:56:35 +08:00
use ctx.Handle to handle 404 page
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user