Send username/email in verification email

This commit is contained in:
Charles Law
2013-09-21 18:47:41 -04:00
parent 931082f426
commit d4bceef5b4

View File

@@ -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