修复 发送验证邮件 bug
This commit is contained in:
parent
6569739707
commit
761f7657c9
|
@ -183,7 +183,7 @@ def company_verify(**kwargs):
|
|||
|
||||
|
||||
@user_route.route('/verify_email', methods=['POST'])
|
||||
# @check_block
|
||||
@check_block
|
||||
def verify_email():
|
||||
"""
|
||||
邮箱验证
|
||||
|
|
|
@ -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],
|
||||
|
|
Loading…
Reference in New Issue