Commit b2fd409c authored by Katia Saurfelt's avatar Katia Saurfelt
Browse files


parent d6a769585c6f
Pipeline #47404 failed with stages
in 1 minute and 59 seconds
......@@ -178,7 +178,7 @@ class RegistrationConfirmController(controller.Controller):
with cnx:
name =
raise Redirect(self.success_redirect_url(name))
except Exception:
except Exception as err:
if err is not None:
# both registration and login failed, re-raise the previous
# ValidationError
......@@ -11,9 +11,9 @@ class RegistrationTC(CubicWebTC):
captcha_value = u'captcha value'
data = {'firstname-subject': u'Toto', 'surname-subject': u'Toto',
'email_address-subject': u'',
'login-subject': u'toto',
data = {'firstname-subject': 'Toto', 'surname-subject': 'Toto',
'email_address-subject': '',
'login-subject': 'toto',
'upassword-subject': 'toto',
'upassword-subject-confirm': 'toto',
'captcha': captcha_value}
......@@ -85,7 +85,9 @@ class RegistrationTC(CubicWebTC):
# ... and the registration key contains all data
key = dict(cgi.parse_qsl(urlparse.urlsplit(url)[3]))['key']
d = self._posted_form('upassword-subject-confirm')
self.assertDictEqual(decrypt(key, self.config['registration-cypher-seed']), d)
decrypred = decrypt(key, self.config['registration-cypher-seed'])
decrypred['upassword-subject'] = decrypred['upassword-subject'].decode("utf8")
self.assertDictEqual(decrypred, d)
def test_send_mail_failure(self):
for param, msg, val in (('login-subject', 'required field', None),
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