utils: fix send_mail >_<

pull/61/head
Darks 3 years ago
parent 77bcb99ea1
commit 1292791113
Signed by: Darks
GPG Key ID: F61F10FA138E797C

@ -19,7 +19,7 @@ def send_reset_password_mail(name, email):
body = render_template('email/reset_password.md', reset_url=reset_url,
name=name)
if V5Config.SEND_MAILS:
send_mail(member.email, subject, html=html, body=body)
send_mail(email, subject, html=html, body=body)
else:
print(f"Reset password url: {reset_url}")
@ -34,6 +34,6 @@ def send_validation_mail(name, email):
body = render_template('email/activate.md', confirm_url=confirm_url,
name=name)
if V5Config.SEND_MAILS:
send_mail(member.email, subject, html=html, body=body)
send_mail(email, subject, html=html, body=body)
else:
print(f"Email confirmation url: {confirm_url}")

Loading…
Cancel
Save