diff --git a/src/nightserver.py b/src/nightserver.py index 342a0ce..498c4cf 100644 --- a/src/nightserver.py +++ b/src/nightserver.py @@ -218,7 +218,16 @@ def resetCyberwareMalfunction(): return 'Not Implemented', 501 def authenticate(uuid, endpoint): - return true + for c in cyberware: # UUID Match + if c['uuid'] == uuid: + requestedHardware = c + break + + for e in requestedHardware['canSet']: # Endpoint match + if e == endpoint: + return True + return False + @app.route('/') def uiindex():