Mercurial > libervia-backend
changeset 1897:e15c7d71ae76
plugin account: fixed use of {domain} instead of hardcoded libervia.org for welcoming e-mail.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 09 Mar 2016 11:17:32 +0100 (2016-03-09) |
parents | c1fbd47b53bf |
children | 31b8a58cfcf5 |
files | src/plugins/plugin_misc_account.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/plugin_misc_account.py Wed Mar 09 11:16:24 2016 +0100 +++ b/src/plugins/plugin_misc_account.py Wed Mar 09 11:17:32 2016 +0100 @@ -306,12 +306,12 @@ 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 @@ 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