Skip to content

Commit

Permalink
Merge pull request web2py#1519 from matclab/fix/1518
Browse files Browse the repository at this point in the history
Allow for firstname and lastname in verify_email message
  • Loading branch information
mdipierro authored Nov 14, 2016
2 parents 05e28dd + 2d48178 commit bebdbd9
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
Expand Up @@ -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,
Expand Down

0 comments on commit bebdbd9

Please sign in to comment.