Skip to content

Commit

Permalink
Reverted commit 15c6af0 because it broke account activation links.
Browse files Browse the repository at this point in the history
  • Loading branch information
lanmaster53 committed Jul 4, 2024
1 parent 3b9019d commit d8c55f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pwnedapi/views/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def post(self):
# create a JWT
activate_token = encode_jwt('new_user', claims=json_data)
# send an email with an activation link using the token
base_url = f"http://{request.headers['host']}"
base_url = request.headers['origin']
link = f"{base_url}/#/signup/activate/{activate_token}"
email = Email(
sender = 'no-reply@pwnedhub.com',
Expand Down

0 comments on commit d8c55f0

Please sign in to comment.