XC progress

This commit is contained in:
2024-08-19 11:42:23 -04:00
parent 8732925d8b
commit 2d22b90fbd
4 changed files with 75 additions and 2 deletions

View File

@ -33,7 +33,11 @@ class Utilities:
key = key.split("Bearer ", maxsplit=1)[1].strip()
if not key in self.constants.API_KEYS:
print("Auth failed.")
print("Auth failed")
return False
if path.lower().startswith("/xc/") and not(key.startswith("XC-")):
print("Auth failed - not an XC Key")
return False
print("Auth succeeded")