fix redirect issue
This commit is contained in:
@@ -72,7 +72,7 @@ class SendEmail:
|
||||
def get_user(self):
|
||||
token = self.page.client_storage.get("token")
|
||||
headers = {"Authorization": f"Bearer {token}"}
|
||||
response = requests.get(f"{API_BASE_URL}/profile", headers=headers)
|
||||
response = requests.get(f"{API_BASE_URL}/profile/", headers=headers)
|
||||
return response.json() if response.status_code == 200 else None
|
||||
|
||||
def get_email_credentials(self):
|
||||
|
||||
Reference in New Issue
Block a user