[root] mail to simple users should be synchronous
This commit is contained in:
parent
782ec52702
commit
ba7609030e
|
@ -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'))
|
||||
|
|
Reference in New Issue