📧 [Backend] SMTP synchrone → async (register/reset password bloquent) #10
Labels
No labels
P0-critical
P1-high
P2-medium
P3-low
UX
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
performance
question
security
tech-debt
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
SlopVibe-org/nutri-food#10
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problème
send_email()utilisesmtplib.SMTP_SSLde manière synchrone. Les endpoints/api/registeret/api/forgot-passwordbloquent jusqu'à ce que le courriel soit envoyé (ou timeout SMTP). Si SMTP est lent → l'utilisateur attend plusieurs secondes.Solution
Quick fix (5 min)
Localisation
backend/app.py—send_email(),send_welcome_email(),send_reset_email()Appelé dans:
register(),forgot_password()