Skip to content

Commit

Permalink
Merge pull request #159 from seanmorley15/development
Browse files Browse the repository at this point in the history
bug fix url
  • Loading branch information
seanmorley15 authored Aug 4, 2024
2 parents e066ed7 + 64dec7f commit c01b0b4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion backend/server/users/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,14 @@ def save(self, request, **kwargs):

path = f"custom_password_reset_url/{user_pk_to_url_str(user)}/{temp_key}/"
url = build_absolute_uri(request, path)

frontend_url = settings.FRONTEND_URL
# remove ' from frontend_url
frontend_url = frontend_url.replace("'", "")

#Values which are passed to password_reset_key_message.txt
context = {
"frontend_url": settings.FRONTEND_URL,
"frontend_url": frontend_url,
"user": user,
"password_reset_url": url,
"request": request,
Expand Down

0 comments on commit c01b0b4

Please sign in to comment.