XC progress
This commit is contained in:
6
util.py
6
util.py
@ -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")
|
||||
|
Reference in New Issue
Block a user