Free and open source ticket system written in python
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add strategic prints

+4
+3
fbl_integration/utils.py
··· 8 8 "password": dob 9 9 }) 10 10 if res.status_code != 201: 11 + print(res.status_code, res.json()) 11 12 return False 12 13 return True 13 14 ··· 18 19 "code": validation_code 19 20 }) 20 21 if res.status_code != 201: 22 + print(res.status_code, res.json()) 21 23 return None 22 24 23 25 return res.json()["accessToken"] ··· 27 29 "Authorization": f"Bearer {jwt_token}" 28 30 }) 29 31 if res.status_code != 200: 32 + print(res.status_code, res.json()) 30 33 return None 31 34 32 35 return res.json()
+1
fbl_integration/views.py
··· 5 5 from .utils import fbl_auth_request_code, fbl_auth_validate_code, fbl_auth_get_account, get_or_create_account 6 6 7 7 def fbl_authentication_start(request): 8 + print('fbl auth started') 8 9 auth_form = FblAuthForm(request.POST or None) 9 10 if request.method == "POST": 10 11 if auth_form.is_valid():