From d4bceef5b43c00a1233f835bc61caefb9a1a1328 Mon Sep 17 00:00:00 2001 From: Charles Law Date: Sat, 21 Sep 2013 18:47:41 -0400 Subject: [PATCH] Send username/email in verification email --- gluon/tools.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gluon/tools.py b/gluon/tools.py index 6bd610ba..200ae469 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -960,7 +960,7 @@ class Auth(object): invalid_password='Invalid password', is_empty="Cannot be empty", mismatched_password="Password fields don't match", - verify_email='Click on the link %(link)s to verify your email', + verify_email='Welcome %(username)s! Click on the link %(link)s to verify your email', verify_email_subject='Email verification', username_sent='Your username was emailed to you', new_password_sent='A new password was emailed to you', @@ -2562,7 +2562,8 @@ class Auth(object): to=form.vars.email, subject=self.messages.verify_email_subject, message=self.messages.verify_email - % dict(key=key, link=link)): + % dict(key=key, link=link, + username=form.vars[username])): self.db.rollback() response.flash = self.messages.unable_send_email return form