Skip to content

Commit

Permalink
Merge pull request #46 from andela/bg-reset-pass-token-with-frontend-…
Browse files Browse the repository at this point in the history
…hostname-166534515

166534515 user should receive an email link to the front end.
  • Loading branch information
engjames committed Jun 9, 2019
2 parents d5ab815 + f55a5dd commit 5344d52
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions authors/apps/authentication/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,7 @@ def post(self, request):
token = generate_token()
serializer.save(user=user, token=token)

activation_link = '{}/api/reset_password/{}/'.format(
request.data['url'], token)
activation_link = request.data['url'] + token

subject = 'Reset account password'
message = 'Click the link below to reset your password.\n{}'.format(
Expand Down

0 comments on commit 5344d52

Please sign in to comment.