mirror of
https://github.com/lorsanstand/Aether.git
synced 2026-06-19 12:05:16 +03:00
19 lines
521 B
Python
19 lines
521 B
Python
import logging
|
|
|
|
from app.core.celery_app import celery_app
|
|
from app.services.email_service import EmailService
|
|
|
|
log = logging.getLogger(__name__)
|
|
|
|
class EmailTasks:
|
|
|
|
@staticmethod
|
|
@celery_app.task
|
|
def send_verify_email_task(email: str, username: str, url: str):
|
|
EmailService.send_verify_email(email, username, url)
|
|
|
|
|
|
@staticmethod
|
|
@celery_app.task
|
|
def send_reset_password_email_task(email: str, username: str, url: str):
|
|
EmailService.send_reset_password_email(email, username, url) |