Skip to content

Commit

Permalink
Allow for firstname and lastname in verify_email message
Browse files Browse the repository at this point in the history
Mathieu Clabaut committed Nov 1, 2016
1 parent 6d38aa7 commit 2d48178
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gluon/tools.py
Original file line number Diff line number Diff line change
@@ -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,

0 comments on commit 2d48178

Please sign in to comment.