From d8c55f00706d7b41e85c8c26bc12aa3db3b4d1f6 Mon Sep 17 00:00:00 2001 From: Tim Tomes Date: Thu, 4 Jul 2024 12:01:54 -0400 Subject: [PATCH] Reverted commit 15c6af0 because it broke account activation links. --- pwnedapi/views/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwnedapi/views/api.py b/pwnedapi/views/api.py index 3b550d9..09017d3 100644 --- a/pwnedapi/views/api.py +++ b/pwnedapi/views/api.py @@ -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',