Reset hesla, doplneni mailu
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user