diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-07-02 12:17:00 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-07-02 12:17:00 +0200 |
| commit | 611c86dbc74ed3a7690ec73c96d608d5d1448832 (patch) | |
| tree | 9cb97f26781112705af2d0e28f28120ce785f6dd /addons/auth_signup/controllers | |
| parent | d112a163cdd15b09dee94d2b55a4455d7600c67c (diff) | |
| parent | 21b2617d6fea4e2f220b13d0623996045a2b7b9d (diff) | |
[MERGE] forward port branch 11.0 up to 21b2617d6fe
Diffstat (limited to 'addons/auth_signup/controllers')
| -rw-r--r-- | addons/auth_signup/controllers/main.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/auth_signup/controllers/main.py b/addons/auth_signup/controllers/main.py index 871847cb7b1..91250d7bb98 100644 --- a/addons/auth_signup/controllers/main.py +++ b/addons/auth_signup/controllers/main.py @@ -77,6 +77,8 @@ class AuthSignupHome(Home): login, request.env.user.login, request.httprequest.remote_addr) request.env['res.users'].sudo().reset_password(login) qcontext['message'] = _("An email has been sent with credentials to reset your password") + except UserError as e: + qcontext['error'] = e.name or e.value except SignupError: qcontext['error'] = _("Could not reset your password") _logger.exception('error when resetting password') |
