diff options
| author | Horus3 | 2015-02-12 18:49:02 +0100 |
|---|---|---|
| committer | Horus3 | 2015-02-12 18:49:02 +0100 |
| commit | cf66deeeba38263feef0ca4123a983cb78ce5cac (patch) | |
| tree | 8afa0dc0c03b9f4979ef4d3a59b658cba3115fff /app/controllers/app.go | |
| parent | 6a212d9dfc6e73a82f83229a5f45f6362c715800 (diff) | |
| download | webmon-cf66deeeba38263feef0ca4123a983cb78ce5cac.tar.gz | |
Removed README
Diffstat (limited to 'app/controllers/app.go')
| -rw-r--r-- | app/controllers/app.go | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/app/controllers/app.go b/app/controllers/app.go index 5b38540..9e5764f 100644 --- a/app/controllers/app.go +++ b/app/controllers/app.go @@ -180,8 +180,16 @@ 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) - jobs.Now(AsyncConfirmRegistration(user, email, key)) + jobs.Now(JobRegistration{User: user, Email: email, Key: key}) c.Flash.Success("A mail with a confirmation link was sent. Please confirm your mail adress now.") return c.Redirect(App.PrintRegister) } + +func (c App) Test(email, key string) revel.Result { + // jobs.Now(JobRegistration{User: "foobar", Email: email, Key: key}) + Mailer{}.ConfirmRegistration("foobar", "raspi@dns.iamfabulous.de", "string") + c.Flash.Success("A mail with a confirmation link was sent. Please confirm your mail adress now.") + + return c.Redirect(App.Index) +} |
