diff --git a/user/routes.py b/user/routes.py index ade5542..7a277d0 100644 --- a/user/routes.py +++ b/user/routes.py @@ -183,7 +183,7 @@ def company_verify(**kwargs): @user_route.route('/verify_email', methods=['POST']) -# @check_block +@check_block def verify_email(): """ 邮箱验证 diff --git a/user/scripts.py b/user/scripts.py index 3efa580..b04c554 100644 --- a/user/scripts.py +++ b/user/scripts.py @@ -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],