From 97110a995705670368ff6d0a53a6d90fdbe305e0 Mon Sep 17 00:00:00 2001 From: bazz333 Date: Tue, 20 May 2025 18:59:31 +0200 Subject: [PATCH] fix: sistemata mail reset password --- app/routes/user.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/routes/user.py b/app/routes/user.py index 4065aae..307a35a 100644 --- a/app/routes/user.py +++ b/app/routes/user.py @@ -476,7 +476,7 @@ async def reset_password( try: # Invia l'email con il token await EmailService().send_email( - to=[user.get("_id")], + to=[user_data.email], subject="[Suppl-AI] Password Reset", body=f""" @@ -491,7 +491,7 @@ async def reset_password(
SUPPL-AI
-
Ciao {html.escape(user.get('name'))},
+
Ciao {user.get('name')},
Ecco la tua nuova password temporanea: