FitTrackee/fittrackee/tasks.py
2021-01-02 19:28:07 +01:00

14 lines
348 B
Python

from typing import Dict
from fittrackee import dramatiq, email_service
@dramatiq.actor(queue_name='fittrackee_emails')
def reset_password_email(user: Dict, email_data: Dict) -> None:
email_service.send(
template='password_reset_request',
lang=user['language'],
recipient=user['email'],
data=email_data,
)