From 632b1b694dc7eb598b552476bb5f76e90c13b25a Mon Sep 17 00:00:00 2001
From: Unknwon <joe2010xtmf@163.com>
Date: Mon, 15 Sep 2014 09:56:12 -0400
Subject: [PATCH] Fix #465

---
 gogs.go              | 2 +-
 routers/user/auth.go | 2 +-
 templates/.VERSION   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gogs.go b/gogs.go
index b94cf0e002..f492b2f7f7 100644
--- a/gogs.go
+++ b/gogs.go
@@ -17,7 +17,7 @@ import (
 	"github.com/gogits/gogs/modules/setting"
 )
 
-const APP_VER = "0.5.0.0913 Beta"
+const APP_VER = "0.5.1.0915 Beta"
 
 func init() {
 	runtime.GOMAXPROCS(runtime.NumCPU())
diff --git a/routers/user/auth.go b/routers/user/auth.go
index 231ee66279..e3d132166e 100644
--- a/routers/user/auth.go
+++ b/routers/user/auth.go
@@ -280,7 +280,7 @@ func SignUpPost(ctx *middleware.Context, cpt *captcha.Captcha, form auth.Registe
 		ctx.Data["IsSendRegisterMail"] = true
 		ctx.Data["Email"] = u.Email
 		ctx.Data["Hours"] = setting.Service.ActiveCodeLives / 60
-		ctx.HTML(200, "user/activate")
+		ctx.HTML(200, ACTIVATE)
 
 		if err := ctx.Cache.Put("MailResendLimit_"+u.LowerName, u.LowerName, 180); err != nil {
 			log.Error(4, "Set cache(MailResendLimit) fail: %v", err)
diff --git a/templates/.VERSION b/templates/.VERSION
index 8d423d667c..6db2a3e6c9 100644
--- a/templates/.VERSION
+++ b/templates/.VERSION
@@ -1 +1 @@
-0.5.0.0913 Beta
\ No newline at end of file
+0.5.1.0915 Beta
\ No newline at end of file