Merge branch 'dev' into preprod

This commit is contained in:
Darks 2020-07-21 22:37:55 +02:00
commit 0a6f87fb75
Signed by: Darks
GPG Key ID: F61F10FA138E797C
1 changed files with 2 additions and 2 deletions

View File

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