comparison src/plugins/plugin_misc_account.py @ 1804:33e73c70d78a

plugin misc_account: add a FIXME comment
author souliane <souliane@mailoo.org>
date Sat, 16 Jan 2016 10:09:16 +0100
parents d17772b0fe22
children 1c9b2c184663
comparison
equal deleted inserted replaced
1803:14a97a5fe1c0 1804:33e73c70d78a
277 277
278 def email_ko(dummy): 278 def email_ko(dummy):
279 # TODO: return error code to user 279 # TODO: return error code to user
280 log.error(u"Failed to send account creation confirmation to <%s>" % email) 280 log.error(u"Failed to send account creation confirmation to <%s>" % email)
281 281
282 # XXX: this will not fail when the email address doesn't exist
283 # FIXME: check email reception to validate email given by the user
284 # FIXME: delete the profile if the email could not been sent?
282 d_user = sendmail(email_host, email_from, email, msg.as_string()) 285 d_user = sendmail(email_host, email_from, email, msg.as_string())
283 d_user.addCallbacks(lambda dummy: log.debug(u"Account creation confirmation sent to <%s>" % email), 286 d_user.addCallbacks(lambda dummy: log.debug(u"Account creation confirmation sent to <%s>" % email),
284 email_ko) 287 email_ko)
285 return defer.DeferredList([d_user, d_admin]) 288 return defer.DeferredList([d_user, d_admin])
286 289