From 2d4817841f467f9a51f1b1af1fff2703b353b802 Mon Sep 17 00:00:00 2001 From: Mathieu Clabaut Date: Tue, 1 Nov 2016 11:31:01 +0100 Subject: [PATCH] Allow for firstname and lastname in verify_email message --- gluon/tools.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gluon/tools.py b/gluon/tools.py index eb4a61f92..db6a9840d 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -3417,7 +3417,9 @@ def register(self, link = self.url( self.settings.function, args=('verify_email', key), scheme=True) d = dict(form.vars) - d.update(dict(key=key, link=link, username=form.vars[username])) + d.update(dict(key=key, link=link, username=form.vars[username], + firstname=form.vars['firstname'], + lastname=form.vars['lastname'])) if not (self.settings.mailer and self.settings.mailer.send( to=form.vars.email, subject=self.messages.verify_email_subject,