comparison src/plugins/plugin_misc_account.py @ 732:ffc3ddcdaf48

plugin account: don't wait for emails anymore
author Goffi <goffi@goffi.org>
date Fri, 13 Dec 2013 17:40:48 +0100
parents 32bbabe809da
children fe05afc3f0df
comparison
equal deleted inserted replaced
731:80c1072390f3 732:ffc3ddcdaf48
141 prosody_reg = ProsodyRegisterProtocol(password, d) 141 prosody_reg = ProsodyRegisterProtocol(password, d)
142 prosody_exe = join(self._prosody_path, self.getConfig('prosodyctl')) 142 prosody_exe = join(self._prosody_path, self.getConfig('prosodyctl'))
143 reactor.spawnProcess(prosody_reg, prosody_exe, [prosody_exe, 'adduser', "%s@%s" % (profile, self.getConfig('new_account_domain'))], path=self._prosody_path) 143 reactor.spawnProcess(prosody_reg, prosody_exe, [prosody_exe, 'adduser', "%s@%s" % (profile, self.getConfig('new_account_domain'))], path=self._prosody_path)
144 144
145 d.addCallback(self._sendEmails, profile, email, password) 145 d.addCallback(self._sendEmails, profile, email, password)
146 d.addCallback(lambda ignore: None) 146 # d.addCallback(lambda ignore: None) # no need to wait for the emails
147 return d 147 # return d
148 148
149 def _sendEmails(self, result, login, email, password): 149 def _sendEmails(self, result, login, email, password):
150 #time to send the email 150 #time to send the email
151 151
152 _email_host = self.getConfig('email_server') 152 _email_host = self.getConfig('email_server')