mirror of
https://github.com/wassname/flask-security.git
synced 2026-09-12 12:21:37 +08:00
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:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user