Add mail module and fix reset password api

This commit is contained in:
Chiaki
2017-04-18 14:34:23 +08:00
parent a9b25b872a
commit c6f49c1fe7
6 changed files with 130 additions and 4 deletions

10
account/tasks.py Normal file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from celery import shared_task
from utils.mail import send_email
@shared_task
def _send_email(from_name, to_email, to_name, subject, content):
send_email(from_name, to_email, to_name, subject, content)