Finished send password reset link

This commit is contained in:
Donald Zou
2025-07-25 18:06:42 +08:00
parent a4ee56648e
commit 62ffd97808
48 changed files with 124 additions and 79 deletions

View File

@@ -1156,8 +1156,8 @@ def API_Email_Ready():
@app.post(f'{APP_PREFIX}/api/email/send')
def API_Email_Send():
data = request.get_json()
if "Receiver" not in data.keys():
return ResponseObject(False, "Please at least specify receiver")
if "Receiver" not in data.keys() or "Subject" not in data.keys():
return ResponseObject(False, "Please at least specify receiver and subject")
body = data.get('Body', '')
download = None
if ("ConfigurationName" in data.keys()