From 5cb2d3d2e233def07d6956af47dfc49acc45c7e6 Mon Sep 17 00:00:00 2001 From: Unknown Date: Thu, 20 Mar 2014 03:24:17 -0400 Subject: Bug fix --- routers/user/user.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'routers/user/user.go') diff --git a/routers/user/user.go b/routers/user/user.go index 37070af3..f495cb13 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 -- cgit v1.2.3