From ba7609030e00a2b9ffb223e1bfc48ab93e172d8f Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 6 May 2011 14:32:01 +0000 Subject: [PATCH] [root] mail to simple users should be synchronous --- authentic/root.ptl | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/authentic/root.ptl b/authentic/root.ptl index bbcc97a..08161fc 100644 --- a/authentic/root.ptl +++ b/authentic/root.ptl @@ -890,11 +890,9 @@ administrator')) } if welcome: - emails.custom_ezt_email('welcome-email', data, identity.email, - fire_and_forget = True) + emails.custom_ezt_email('welcome-email', data, identity.email) else: - emails.custom_ezt_email('password-email', data, identity.email, - fire_and_forget = True) + emails.custom_ezt_email('password-email', data, identity.email) def forgot_password_message [html] (self): template.html_top(_('Lost Password')) @@ -1129,8 +1127,7 @@ administrator')) } get_logger().info('Forgot identifier: reminded email %r of its accounts' % email) try: - emails.custom_ezt_email('identifier-email', data, email, - fire_and_forget = True) + emails.custom_ezt_email('identifier-email', data, email) except: return None, _('Error when sending the mail') get_session().message = ('info', _('Your identifiers have been send to %s'))