修复 发送验证邮件 bug

This commit is contained in:
王思川 2021-12-15 11:24:54 +08:00
parent 6569739707
commit 761f7657c9
2 changed files with 2 additions and 2 deletions

View File

@ -183,7 +183,7 @@ def company_verify(**kwargs):
@user_route.route('/verify_email', methods=['POST'])
# @check_block
@check_block
def verify_email():
"""
邮箱验证

View File

@ -31,7 +31,7 @@ def send_email(email, code, v_type):
"resetemail": "修改邮箱"
}
headers = {"Content-Type": "application/template;charset=UTF-8"}
headers = {"Content-Type": "application/json;charset=UTF-8"}
data = {"title": "【远东资信】{}".format(types[v_type]),
"sender": 'fecribd@fecr.com.cn',
"recipients": [email],