Reset hesla, doplneni mailu

This commit is contained in:
Michal Kváček
2024-02-08 16:26:12 +01:00
parent 03c9f2d189
commit c26eb97288
11 changed files with 235 additions and 79 deletions
+8 -2
View File
@@ -11,10 +11,16 @@ class ContactInput(BaseModel):
class ContactEndpoint():
async def on_post(self, input: ContactInput, resp: Response, backgorund_tasks: BackgroundTasks):
async def on_post(self, input: ContactInput, backgorund_tasks: BackgroundTasks):
backgorund_tasks.add_task(send_email, ContactFormEmail(
email_from=input.email_from,
content=input.content
))
# todo vratit nejakou smysluplnou
return {
"status": "success",
"email": {
"from": input.email_from,
"content": input.content
}
}