From 43d7a16b3181e4d15d55d447990d1ebdc931503f Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Mon, 30 Oct 2017 15:22:37 +0100 Subject: [PATCH] More logging on password resets --- pgweb/account/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pgweb/account/views.py b/pgweb/account/views.py index 2a8566f8..6416b7be 100644 --- a/pgweb/account/views.py +++ b/pgweb/account/views.py @@ -241,8 +241,8 @@ def resetpwd(request): if u.password == OAUTH_PASSWORD_STORE: return HttpServerError("This account cannot change password as it's connected to a third party login site.") except User.DoesNotExist: - pass - log.info("Initiating password set from {0}".format(get_client_ip(request))) + log.info("Attempting to reset password of {0}, user not found".format(request.POST['email'])) + log.info("Initiating password set from {0} for {1}".format(get_client_ip(request), request.POST['email'])) return authviews.password_reset(request, template_name='account/password_reset.html', email_template_name='account/password_reset_email.txt', post_reset_redirect='/account/reset/done/') -- 2.39.5