Skip to content
This repository was archived by the owner on Jun 7, 2025. It is now read-only.

Commit a135982

Browse files
authored
Merge pull request #38 from CodeHex16/hotfix-bazzan-sprint15
fix: sistemata mail reset password
2 parents c294c9a + 97110a9 commit a135982

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/routes/user.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ async def reset_password(
476476
try:
477477
# Invia l'email con il token
478478
await EmailService().send_email(
479-
to=[user.get("_id")],
479+
to=[user_data.email],
480480
subject="[Suppl-AI] Password Reset",
481481
body=f"""
482482
<!DOCTYPE html>
@@ -491,7 +491,7 @@ async def reset_password(
491491
<div class="container">
492492
<div class="header">
493493
<div class="title" style="font-size: 2rem; font-weight: 700; color: #1976d2;">SUPPL-AI</div>
494-
<div class="title">Ciao {html.escape(user.get('name'))},</div>
494+
<div class="title">Ciao {user.get('name')},</div>
495495
</div>
496496
<div class="content">
497497
Ecco la tua nuova password temporanea:

0 commit comments

Comments
 (0)