Add option to disable password change email.

This commit is contained in:
Joe Hand
2013-09-15 18:38:36 -06:00
parent 73ff1c00b3
commit 389d944aaf
3 changed files with 5 additions and 1 deletions
+2 -1
View File
@@ -28,7 +28,8 @@ def send_password_changed_notice(user):
:param user: The user to send the notice to
"""
send_mail(config_value('EMAIL_SUBJECT_PASSWORD_CHANGE_NOTICE'), user.email,
if config_value('SEND_PASSWORD_CHANGE_EMAIL'):
send_mail(config_value('EMAIL_SUBJECT_PASSWORD_CHANGE_NOTICE'), user.email,
'change_notice', user=user)