Commit 04d3e92c authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

Change message when account is activated

to make it clear user still have to authenticate herself.
parent 8a128daed370
......@@ -23,8 +23,9 @@ msgstr ""
msgid "Confirm your registration on %(base_url)s"
msgstr ""
#, python-format
msgid "Congratulations, your registration is complete. Welcome %s !"
msgid ""
"Congratulations, your registration is complete. You can now <a href="
"\"{}\">login</a>."
msgstr ""
msgid "Invalid registration data. Please try registering again."
......
......@@ -41,9 +41,12 @@ msgstr ""
msgid "Confirm your registration on %(base_url)s"
msgstr "Confirmez votre enregistrement sur %(base_url)s"
#, python-format
msgid "Congratulations, your registration is complete. Welcome %s !"
msgstr "Félicitations, votre compte est maintenant activé. Bienvenue %s !"
msgid ""
"Congratulations, your registration is complete. You can now <a href="
"\"{}\">login</a>."
msgstr ""
"Félicitations, votre compte est maintenant activé, vous pouvez vous <a href="
"\"{}\">authentifier</a>."
msgid "Invalid registration data. Please try registering again."
msgstr ""
......
......@@ -120,7 +120,7 @@ class RegistrationTC(CubicWebTC):
self.assertMessageEqual(
req, params,
'Congratulations, your registration is complete. '
'Welcome %(firstname-subject)s %(surname-subject)s !' % self.data)
'You can now <a href="{}">login</a>.'.format(req.build_url('login')))
with self.admin_access.repo_cnx() as cnx:
rset = cnx.execute('Any U WHERE U login %(login)s, U firstname %(firstname)s, '
'U surname %(surname)s, U use_email M, M address %(email_address)s',
......
......@@ -188,9 +188,10 @@ class RegistrationConfirmController(controller.Controller):
raise
def success_redirect_url(self, name):
login = self._cw.build_url('login')
msg = self._cw._(u'Congratulations, your registration is complete. '
'Welcome %s !')
return self._cw.build_url('', __message=msg % name)
'You can now <a href="{}">login</a>.').format(login)
return self._cw.build_url('', __message=msg)
class RegisterLink(basecomponents.HeaderComponent):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment