Update send_mail api and add welcome email for user registration. Also add security state to template context for emails for more complex template rendering.

This commit is contained in:
Matt Wright
2012-08-22 15:15:39 -04:00
parent 86adcf0653
commit 53257c17a9
10 changed files with 41 additions and 31 deletions
-1
View File
@@ -362,7 +362,6 @@ class ExpiredConfirmationTest(SecurityTest):
r = self.client.get('/confirm/' + token, follow_redirects=True)
self.assertEqual(len(outbox), 1)
self.assertIn(e, outbox[0].html)
self.assertNotIn(token, outbox[0].html)
expire_text = self.AUTH_CONFIG['SECURITY_CONFIRM_EMAIL_WITHIN']