Add a password change notification email (#1221)

* Adds an email notification for password resets
This commit is contained in:
Kevin Chung
2020-01-20 23:05:44 -05:00
committed by GitHub
parent 60c46af58a
commit a2551db690
2 changed files with 12 additions and 0 deletions

View File

@@ -135,6 +135,7 @@ def reset_password(data=None):
name=user.name,
)
db.session.close()
email.password_change_alert(user.email)
return redirect(url_for("auth.login"))
if request.method == "POST":