mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-08 09:53:10 +02:00
use ctx.Handle to handle 404 page
This commit is contained in:
1 parent
ad31893bbb
commit
47493a0191
5 files changed
+34
-20
No files matched your search
@@ -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