mirror of
https://github.com/simple-login/app.git
synced 2024-11-10 17:35:27 +08:00
add more logging
This commit is contained in:
parent
0039b4c301
commit
f3b04b9d81
1 changed files with 3 additions and 1 deletions
|
@ -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"))
|
||||
|
||||
|
|
Loading…
Reference in a new issue