comparison src/plugins/plugin_misc_account.py @ 1040:76ad41b708e1

plugin misc_account: do not send the password with the confirmation email for account creation
author souliane <souliane@mailoo.org>
date Tue, 20 May 2014 15:47:08 +0200
parents e90125d07072
children 9095263011b6
comparison
equal deleted inserted replaced
1039:902c764a0d2b 1040:76ad41b708e1
205 205
206 body = (u"""Welcome to Libervia, a Salut à Toi project part 206 body = (u"""Welcome to Libervia, a Salut à Toi project part
207 207
208 /!\\ WARNING, THIS IS ONLY A TECHNICAL DEMO, DON'T USE THIS ACCOUNT FOR ANY SERIOUS PURPOSE /!\\ 208 /!\\ WARNING, THIS IS ONLY A TECHNICAL DEMO, DON'T USE THIS ACCOUNT FOR ANY SERIOUS PURPOSE /!\\
209 209
210 Here are your connection informations: 210 Here is your connection information:
211 --- 211 ---
212 login: %(login)s 212 login: %(login)s
213 password: %(password)s
214 213
215 Your Jabber ID (JID) is: %(jid)s 214 Your Jabber ID (JID) is: %(jid)s
216 --- 215 ---
217 216
218 To try with some contacts, you can use the directory: subscribe in your parameters, and use it with the Communication/Search directory menu. 217 To try with some contacts, you can use the directory: subscribe in your parameters, and use it with the Communication/Search directory menu.
221 follow SàT news: http://www.goffi.org 220 follow SàT news: http://www.goffi.org
222 221
223 Any feedback welcome 222 Any feedback welcome
224 223
225 Cheers 224 Cheers
226 SàT team""" % {'login': login, 'password': password, 'jid': "%s@%s" % (login, self.getConfig('new_account_domain'))}).encode('utf-8') 225 SàT team""" % {'login': login, 'jid': "%s@%s" % (login, self.getConfig('new_account_domain'))}).encode('utf-8')
227 msg = MIMEText(body, 'plain', 'UTF-8') 226 msg = MIMEText(body, 'plain', 'UTF-8')
228 msg['Subject'] = 'Libervia account created' 227 msg['Subject'] = 'Libervia account created'
229 msg['From'] = _email_from 228 msg['From'] = _email_from
230 msg['To'] = email 229 msg['To'] = email
231 230