add more logging

This commit is contained in:
Son NK 2021-04-16 18:37:16 +02:00
parent 0039b4c301
commit f3b04b9d81

View file

@ -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"))