Skip to content

Commit

Permalink
fix: update reset password link sent in email message
Browse files Browse the repository at this point in the history
  • Loading branch information
PauloUbirajara committed Apr 29, 2024
1 parent 751b6a0 commit 1b7bc77
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions apps/user_management/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1b7bc77

Please sign in to comment.