From 0da4975f4ffca8dd85213c19600730ee52349e2a Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 19 Mar 2014 09:29:58 -0400 Subject: [PATCH] Working on register mail confirmation --- modules/middleware/auth.go | 6 +++--- templates/user/active.tmpl | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/middleware/auth.go b/modules/middleware/auth.go index 33321d6e4..84bbc7f45 100644 --- a/modules/middleware/auth.go +++ b/modules/middleware/auth.go @@ -17,9 +17,9 @@ func SignInRequire(redirect bool) martini.Handler { } return } else if !ctx.User.IsActive { - ctx.Data["Title"] = "Activate Your Account" - ctx.Render.HTML(200, "user/active", ctx.Data) - return + // ctx.Data["Title"] = "Activate Your Account" + // ctx.Render.HTML(200, "user/active", ctx.Data) + // return } } } diff --git a/templates/user/active.tmpl b/templates/user/active.tmpl index 758516d77..319db6cfa 100644 --- a/templates/user/active.tmpl +++ b/templates/user/active.tmpl @@ -2,7 +2,7 @@ {{template "base/navbar" .}}
-

Active Your Account

+

Activate Your Account

{{if .IsActivatePage}} {{if .ServiceNotEnabled}}

Sorry, Register Mail Confirmation has been disabled.

@@ -11,6 +11,7 @@ {{end}} {{else}}

Hi, {{.SignedUser.Name}}, you have an unconfirmed email address({{.SignedUser.Email}}). If you haven't received a confirmation e-mail or need to resend a new one, please click botton below.

+