Skip to content

Commit

Permalink
chore(models):change url
Browse files Browse the repository at this point in the history
- change the url to redirect to the front page
[Finishes #165244730]
  • Loading branch information
winniekariuki committed Apr 10, 2019
1 parent e0231ab commit adb536a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ celerybeat-schedule
# virtualenv
venv/
ENV/
environment

# Spyder project settings
.spyderproject
Expand Down
2 changes: 1 addition & 1 deletion authors/apps/authentication/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def generate_link_message(token):
:param token:
:return: Returns a message with a url link
"""
link = "{}api/users/reset_password/{}".format(os.environ['URL'], token)
link = "{}/resetform/{}".format(os.environ['FRONT_URL'], token)

request_message = "An account associated with this email address " \
"for Authors Haven has requested a password reset." \
Expand Down

0 comments on commit adb536a

Please sign in to comment.