plugin account: fixed use of {domain} instead of hardcoded libervia.org for welcoming e-mail.

This commit is contained in:
Goffi 2016-03-09 11:17:32 +01:00
commit e45ceec338

View file

@ -306,12 +306,12 @@ class MiscAccount(object):
body = (_(u"""Welcome to Libervia, the web interface of Salut à Toi.
Your account on %(domain)s has been successfully created. This is a demonstration version to show you the current status of the project. It is still under development, please keep it in mind!
Your account on {domain} has been successfully created. This is a demonstration version to show you the current status of the project. It is still under development, please keep it in mind!
Here is your connection information:
Login on libervia.org: %(profile)s
Jabber ID (JID): %(jid_s)s
Login on {domain}: {profile}
Jabber ID (JID): {jid}
Your password has been chosen by yourself during registration.
In the beginning, you have nobody to talk to. To find some contacts, you may use the users' directory:
@ -322,7 +322,7 @@ Any feedback welcome. Thank you!
Salut à Toi association
http://www.salut-a-toi.org
""") % {'profile': profile, 'jid_s': jid_s, 'domain': domain}).encode('utf-8')
""").format(profile=profile, jid=jid_s, domain=domain)).encode('utf-8')
msg = MIMEText(body, 'plain', 'UTF-8')
msg['Subject'] = _(u'Libervia account created')
msg['From'] = email_from