diff options
| author | Olivier Dony <odo@openerp.com> | 2017-02-15 22:55:46 +0100 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2017-05-05 17:02:46 +0200 |
| commit | 6921da00b3a253ea5d0cdd135a8629ef9cb14ca7 (patch) | |
| tree | 5a7af60019f90e090eb5aab929df54febc2def18 /addons/auth_signup/controllers | |
| parent | 21482ac263d965dfe29deaed365c1d297f170e2e (diff) | |
[FIX] auth_signup: properly log password reset requests
Diffstat (limited to 'addons/auth_signup/controllers')
| -rw-r--r-- | addons/auth_signup/controllers/main.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/auth_signup/controllers/main.py b/addons/auth_signup/controllers/main.py index 2718e47dd2a..5b45e068289 100644 --- a/addons/auth_signup/controllers/main.py +++ b/addons/auth_signup/controllers/main.py @@ -57,6 +57,9 @@ class AuthSignupHome(Home): else: login = qcontext.get('login') assert login, "No login provided." + _logger.info( + "Password reset attempt for <%s> by user <%s> from %s", + 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 SignupError: |
