summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2017-10-30 11:10:25 +0100
committerMartin Trigaux <mat@odoo.com>2017-10-30 11:19:00 +0100
commitc3bf1618bd9540f86ec8f236bdfafce80e610c3e (patch)
tree14fe982d5a38e5458022103f37f30f5f76170d29 /addons
parent81fffdbdc4ae23e6d08cf1207dc14bf52156244e (diff)
[FIX] auth_signup: properly display the error message
Was "('Passwords do not match; please retype them.', '')" Introduced at 676022e3
Diffstat (limited to 'addons')
-rw-r--r--addons/auth_signup/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
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.")