FitTrackee/fittrackee/tasks.py

14 lines
348 B
Python
Raw Normal View History

2021-01-02 19:28:03 +01:00
from typing import Dict
from fittrackee import dramatiq, email_service
2020-07-15 09:19:03 +02:00
@dramatiq.actor(queue_name='fittrackee_emails')
2021-01-02 19:28:03 +01:00
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,
)