Skip to content

Commit 171db85

Browse files
committed
fix: SSL error on login
1 parent 05f9c05 commit 171db85

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

integration_bot/utils/login.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
def login() -> str:
55
api_url:str = os.getenv("API_URL") + "/auth/login"
66
payload:dict = {"email": os.getenv('BOT_WEBSITE_EMAIL'), "password": os.getenv('BOT_WEBSITE_PASSWORD')}
7-
response = requests.post(api_url, json=payload, verify=False)
7+
response = requests.post(api_url, json=payload)
88
if response.status_code == 200:
99
return response.json().get('data', {}).get('token', '')
1010
else:

integration_bot/utils/users.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def get_teams_with_users(token: str) -> list:
55
url = os.getenv("API_URL") + "/team/admin/teamswithusers"
66
headers = {"Authorization": f"Bearer {token}"}
77
print(f"[FETCH] Fetching teams with users...")
8-
response = requests.get(url, headers=headers, verify=False)
8+
response = requests.get(url, headers=headers)
99
if response.status_code == 200:
1010
data = response.json().get('data', [])
1111
print(f"[FETCH] Retrieved {len(data)} teams.")

0 commit comments

Comments
 (0)