summaryrefslogtreecommitdiff
path: root/app/controllers/app.go
diff options
context:
space:
mode:
authorHorus_Arch2015-02-10 22:24:02 +0100
committerHorus_Arch2015-02-10 22:24:02 +0100
commit6a212d9dfc6e73a82f83229a5f45f6362c715800 (patch)
treed2985eb30fc22d2af628654e52484eda27b5dcf1 /app/controllers/app.go
parent5a5d0fd250c28c3560ff00b9a367938e915eed7f (diff)
downloadwebmon-6a212d9dfc6e73a82f83229a5f45f6362c715800.tar.gz
Try job feature.
Diffstat (limited to 'app/controllers/app.go')
-rw-r--r--app/controllers/app.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/controllers/app.go b/app/controllers/app.go
index fb11d01..5b38540 100644
--- a/app/controllers/app.go
+++ b/app/controllers/app.go
@@ -3,7 +3,7 @@ package controllers
import (
"github.com/jinzhu/gorm"
"github.com/revel/revel"
- // "github.com/revel/revel/modules/jobs/app/jobs"
+ "github.com/revel/revel/modules/jobs/app/jobs"
)
type App struct {
@@ -179,7 +179,8 @@ func (c App) Register(email, confirmEmail, user, password, confirmPassword strin
// Send email with confirmation link
//jobs.Now(Mailer{}.ConfirmRegistration(email, key))
- _ = Mailer{}.ConfirmRegistration(user, email, key)
+ //_ = Mailer{}.ConfirmRegistration(user, email, key)
+ jobs.Now(AsyncConfirmRegistration(user, email, key))
c.Flash.Success("A mail with a confirmation link was sent. Please confirm your mail adress now.")
return c.Redirect(App.PrintRegister)