mirror of
https://github.com/go-gitea/gitea
synced 2025-07-09 12:07:20 +00:00
Refactor error system (#33610)
This commit is contained in:
@ -116,7 +116,7 @@ func ActivateEmail(ctx *context.Context) {
|
||||
activate, oka := truefalse[ctx.FormString("activate")]
|
||||
|
||||
if uid == 0 || len(email) == 0 || !okp || !oka {
|
||||
ctx.Error(http.StatusBadRequest)
|
||||
ctx.HTTPError(http.StatusBadRequest)
|
||||
return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user