Last fix
[auf_django_auth_token.git] / auf / django / auth_token / models.py
index 5939dcb..0adf52e 100755 (executable)
@@ -46,6 +46,7 @@ class Token(models.Model):
                 ALLOW_UNSECURED_TOKEN_AUTH) else 'http'),
             'host': request.get_host(),
             'token_param': AUTH_TOKEN_PARAM,
+            'token': self.value,
             }
 
         tpl_data = {
@@ -77,7 +78,7 @@ class Token(models.Model):
                 EMAIL_SUBJECT,
                 text_response,
                 sender,
-                [recipients],
+                recipients,
                 )
             msg.attach_alternative(html_response, "text/html")
             msg.send()