mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00: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