Demosthene-OR
commited on
Commit
•
168f619
1
Parent(s):
7718dbe
Update main.py
Browse files
main.py
CHANGED
@@ -91,6 +91,7 @@ def authenticate(authorization: str = Header(None)):
|
|
91 |
raise HTTPException(status_code=401, detail="Utilisateur non authorisé1")
|
92 |
try:
|
93 |
scheme, credentials = authorization.split()
|
|
|
94 |
if scheme.lower != 'basic':
|
95 |
raise HTTPException(status_code=401, detail="Utilisateur non authorisé "+scheme)
|
96 |
username, password = credentials.split(":")
|
|
|
91 |
raise HTTPException(status_code=401, detail="Utilisateur non authorisé1")
|
92 |
try:
|
93 |
scheme, credentials = authorization.split()
|
94 |
+
print("scheme, credentials ",scheme, credentials)
|
95 |
if scheme.lower != 'basic':
|
96 |
raise HTTPException(status_code=401, detail="Utilisateur non authorisé "+scheme)
|
97 |
username, password = credentials.split(":")
|