diff --git a/backend/mlmAccess.py b/backend/mlmAccess.py index da7db0b..cd5a26b 100644 --- a/backend/mlmAccess.py +++ b/backend/mlmAccess.py @@ -33,7 +33,7 @@ class MlmAccess: def _handleActorPairRequest(self, id): print(f"Pair request for type actor with ID {id}") - if not self.db.userExists(id): + if not self.db.userExists(f"actor-{id}"): password = ''.join(random.choices(string.ascii_uppercase + string.digits, k=10)) self.db.addUser(f"actor-{id}", password, [f"mlmAccess/actor/{id}/status"], [f"mlmAccess/actor/{id}/action"])