Skip to content
Snippets Groups Projects
Unverified Commit d083912f authored by Mike OConnell's avatar Mike OConnell Committed by GitHub
Browse files

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
parent 5272556a
No related branches found
Tags release-2021-06-09-12.41
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment