From 1b7bc77ed6bd526aba242673be5cb6f0f498da1f Mon Sep 17 00:00:00 2001 From: Paulo Ubirajara de Mattos Neto Date: Mon, 29 Apr 2024 14:40:27 -0300 Subject: [PATCH] fix: update reset password link sent in email message --- apps/user_management/views.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/apps/user_management/views.py b/apps/user_management/views.py index 639bb63..a91659c 100644 --- a/apps/user_management/views.py +++ b/apps/user_management/views.py @@ -91,11 +91,8 @@ def post(self, request): user_management = UserManagement.objects.create(user=user) # Construct password reset link - reset_link = request.build_absolute_uri( - urljoin( - getenv("FRONTEND_RESET_PASSWORD_URL", ""), - reverse("password-reset", kwargs={"token": user_management.token}), - ) + reset_link = urljoin( + getenv("FRONTEND_RESET_PASSWORD_URL", ""), str(user_management.token) ) # Send password reset email