comparison src/plugins/plugin_misc_account.py @ 733:fe05afc3f0df

reverted last commit
author Goffi <goffi@goffi.org>
date Fri, 13 Dec 2013 17:46:35 +0100
parents ffc3ddcdaf48
children 1def5b7edf9f
comparison
equal deleted inserted replaced
732:ffc3ddcdaf48 733:fe05afc3f0df
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) # no need to wait for the emails 146 d.addCallback(lambda ignore: None)
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')