diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-07-02 15:16:20 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-07-02 15:16:20 +0200 |
| commit | a0c5b58d5d2c9ed39995c8dbc65b68152d9facff (patch) | |
| tree | 30ca7622fcc14c3a8a91deb2bdad5ef855a07108 /addons/auth_signup/controllers | |
| parent | 683b0746beda2a2e89afc401be8baebba0583129 (diff) | |
| parent | 4846c30c90abdd32bdc16715892e46ec1797c25c (diff) | |
[MERGE] forward port branch saas-11.3 up to 4846c30c90a
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 7410521e901..6a3f055ecf7 100644 --- a/addons/auth_signup/controllers/main.py +++ b/addons/auth_signup/controllers/main.py @@ -78,6 +78,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') |
