diff --git a/app/auth/views/forgot_password.py b/app/auth/views/forgot_password.py index add078b0..c31efe70 100644 --- a/app/auth/views/forgot_password.py +++ b/app/auth/views/forgot_password.py @@ -4,9 +4,10 @@ from wtforms import StringField, validators from app.auth.base import auth_bp from app.dashboard.views.setting import send_reset_password_email -from app.utils import sanitize_email from app.extensions import limiter +from app.log import LOG from app.models import User +from app.utils import sanitize_email class ForgotPasswordForm(FlaskForm): @@ -30,6 +31,7 @@ def forgot_password(): user = User.get_by(email=email) if user: + LOG.d("Send forgot password email to %s", user) send_reset_password_email(user) return redirect(url_for("auth.forgot_password"))