diff options
Diffstat (limited to 'routers/user/user.go')
-rw-r--r-- | routers/user/user.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/routers/user/user.go b/routers/user/user.go index 37070af3f9..f495cb13ab 100644 --- a/routers/user/user.go +++ b/routers/user/user.go @@ -233,6 +233,10 @@ func Activate(ctx *middleware.Context) { code := ctx.Query("code") if len(code) == 0 { ctx.Data["IsActivatePage"] = true + if ctx.User.IsActive { + ctx.Error(404) + return + } // Resend confirmation e-mail. if base.Service.RegisterEmailConfirm { ctx.Data["Hours"] = base.Service.ActiveCodeLives / 60 |