Browse Source

邮箱注册改为AWS SES发生邮件

zhangdongming 1 year ago
parent
commit
72b294e474
2 changed files with 1 additions and 2 deletions
  1. 1 1
      Controller/UserController.py
  2. 0 1
      Object/OCIObjectStorage.py

+ 1 - 1
Controller/UserController.py

@@ -954,7 +954,7 @@ class v2authCodeView(TemplateView):
         ses = SesClassObject()
         body = send_data['body'].replace("{username}", user_email).replace("{captcha}", str(identifyingCode))
         title = send_data['title']
-        if CONFIG_INFO == CONFIG_EUR:
+        if CONFIG_INFO == CONFIG_EUR or CONFIG_INFO == CONFIG_US:
             send_res = S3Email().send_email(send_data['title'], send_data['body'].replace("{username}", user_email)
                                             .replace("{captcha}", str(identifyingCode)), user_email)
             return send_res

+ 0 - 1
Object/OCIObjectStorage.py

@@ -79,7 +79,6 @@ class OCIObjectStorage:
             )
 
             assert response.status == 200
-            print(response.data)
             return response.data
 
         except Exception as e: