From c3bf1618bd9540f86ec8f236bdfafce80e610c3e Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Mon, 30 Oct 2017 11:10:25 +0100 Subject: [PATCH] [FIX] auth_signup: properly display the error message Was "('Passwords do not match; please retype them.', '')" Introduced at 676022e3 --- addons/auth_signup/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/auth_signup/controllers/main.py b/addons/auth_signup/controllers/main.py index 98e5df56bb1..17501e53d05 100644 --- a/addons/auth_signup/controllers/main.py +++ b/addons/auth_signup/controllers/main.py @@ -46,7 +46,7 @@ class AuthSignupHome(Home): ).send_mail(user_sudo.id, force_send=True) return super(AuthSignupHome, self).web_login(*args, **kw) except UserError as e: - qcontext['error'] = str(e) + qcontext['error'] = e.message or e.name except (SignupError, AssertionError) as e: if request.env["res.users"].sudo().search([("login", "=", qcontext.get("login"))]): qcontext["error"] = _("Another user is already registered using this email address.")