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/views.py | |
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/views.py')
-rw-r--r-- | jm2l/views.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jm2l/views.py b/jm2l/views.py index f8fa96e..d11372c 100644 --- a/jm2l/views.py +++ b/jm2l/views.py @@ -649,12 +649,12 @@ def participer(request): NewUser = TmpUsr # Prepare Plain Text Message : Mail_template = Template(filename='jm2l/templates/mail_plain.mako') - mail_plain = Mail_template.render(User=NewUser, action="Welcome") + mail_plain = Mail_template.render(request=request, User=NewUser, action="Welcome") body = Attachment(data=mail_plain, transfer_encoding="quoted-printable") # Prepare HTML Message : Mail_template = Template(filename='jm2l/templates/mail_html.mako') - mail_html = Mail_template.render(User=NewUser, action="Welcome") + mail_html = Mail_template.render(request=request, User=NewUser, action="Welcome") html = Attachment(data=mail_html, transfer_encoding="quoted-printable") # Prepare Message @@ -1067,4 +1067,4 @@ def forbidden(reason, request): #return Response('forbidden') request.response.status = 404 return render_to_response('jm2l:templates/Errors/404.mak', { "reason":reason }, - request=request) + request=request)
\ No newline at end of file |