FitTrackee/fittrackee/tasks.py

12 lines
303 B
Python
Raw Normal View History

from fittrackee import dramatiq, email_service
2020-07-15 09:19:03 +02:00
@dramatiq.actor(queue_name='fittrackee_emails')
def reset_password_email(user, email_data):
email_service.send(
template='password_reset_request',
lang=user['language'],
recipient=user['email'],
data=email_data,
)