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