mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-01 12:22:11 +00:00
use ctx.Handle to handle 404 page
This commit is contained in:
parent
ad31893bbb
commit
47493a0191
5 changed files with 34 additions and 20 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue