diff options
author | piernov <piernov@piernov.org> | 2015-02-28 21:38:06 +0100 |
---|---|---|
committer | piernov <piernov@piernov.org> | 2015-02-28 21:38:06 +0100 |
commit | 2a8cf25c394d9bd89d5d9bfb34bc6b32c3a61454 (patch) | |
tree | 0071de7abe9a61d5a74f9ba7296dcd0d9bee2a5c /jm2l/templates/mail_plain.mako | |
parent | 2e9a70b0a63ec72c9ff84675b23057388f054626 (diff) | |
download | jm2l-2a8cf25c394d9bd89d5d9bfb34bc6b32c3a61454.tar.gz jm2l-2a8cf25c394d9bd89d5d9bfb34bc6b32c3a61454.tar.bz2 jm2l-2a8cf25c394d9bd89d5d9bfb34bc6b32c3a61454.tar.xz jm2l-2a8cf25c394d9bd89d5d9bfb34bc6b32c3a61454.zip |
Generate user registration validation link from request URL
Diffstat (limited to 'jm2l/templates/mail_plain.mako')
-rw-r--r-- | jm2l/templates/mail_plain.mako | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jm2l/templates/mail_plain.mako b/jm2l/templates/mail_plain.mako index 7ab174b..a5ae5b4 100644 --- a/jm2l/templates/mail_plain.mako +++ b/jm2l/templates/mail_plain.mako @@ -1,15 +1,15 @@ ## -*- coding: utf-8 -*- -<%def name="Bienvenue(User)"> +<%def name="Bienvenue(request, User)"> Bonjour ${User.prenom}. Vous venez de valider votre inscription sur le site des JM2L. Voici votre le lien pour vous connecter à votre profil: -http://jm2l.style-python.fr/sign/jm2l/${User.my_hash} +${request.route_url('bymail', hash=User.my_hash)} Toute l'équipe vous souhaite une très agréable visite ! </%def> \ % if action=='Welcome': -${self.Bienvenue(User)} -% endif
\ No newline at end of file +${self.Bienvenue(request, User)} +% endif |