From a7fa0e665d2e6c08b0f73210fabc2b424bf90b3b Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Wed, 18 Aug 2021 19:11:31 +0200 Subject: [PATCH] Fix double registration --- backend/mlmAccess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"])