Send resetpassword link to pycon.it for now
import logging
from pythonit_toolkit.emails.templates import EmailTemplate
+
from users.domain.entities import User
from users.domain.services.exceptions import UserIsNotActiveError
from users.emails import send_email
-from users.settings import ASSOCIATION_FRONTEND_URL
logger = logging.getLogger(__file__)
@@ -24,7 +24,8 @@ async def request_reset_password(user: User):
subject="Reset your password",
variables={
"firstname": user.name,
- "resetpasswordlink": f"{ASSOCIATION_FRONTEND_URL}/reset-password/{token}",
+ # "resetpasswordlink": f"{ASSOCIATION_FRONTEND_URL}/reset-password/{token}",
+ "resetpasswordlink": f"https://pycon.it/en/reset-password/{token}",
},
)
logger.info("Sent reset password token of user_id=%s", user.id)
