mirror of
https://github.com/lorsanstand/Aether.git
synced 2026-06-19 20:15:16 +03:00
Create authorization system
This commit is contained in:
@@ -0,0 +1 @@
|
||||
from .email_tasks import *
|
||||
@@ -0,0 +1,13 @@
|
||||
import logging
|
||||
|
||||
from app.utils.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)
|
||||
Reference in New Issue
Block a user