From d083912ff3e614f5de78cd28da62fb9ad6a84ffe Mon Sep 17 00:00:00 2001 From: Mike OConnell <51322993+moconnell1453@users.noreply.github.com> Date: Wed, 9 Jun 2021 11:05:31 -0400 Subject: [PATCH] Add log message when password reset requested (#27886) Logs an INFO message whenever a password reset email is generated. The intent is to detect abuse of this feature. SEG-48 --- common/djangoapps/student/views/management.py | 1 + 1 file changed, 1 insertion(+) diff --git a/common/djangoapps/student/views/management.py b/common/djangoapps/student/views/management.py index fa6985d084..9ddb4d759f 100644 --- a/common/djangoapps/student/views/management.py +++ b/common/djangoapps/student/views/management.py @@ -726,6 +726,7 @@ def do_email_change_request(user, new_email, activation_key=None, secondary_emai try: ace.send(msg) + log.info("Email activation link sent to user [%s].", new_email) except Exception: from_address = configuration_helpers.get_value('email_from_address', settings.DEFAULT_FROM_EMAIL) log.error('Unable to send email activation link to user from "%s"', from_address, exc_info=True)