Fix double registration
This commit is contained in:
parent
db944fc3c3
commit
a7fa0e665d
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ class MlmAccess:
|
||||||
|
|
||||||
def _handleActorPairRequest(self, id):
|
def _handleActorPairRequest(self, id):
|
||||||
print(f"Pair request for type actor with ID {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))
|
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"])
|
self.db.addUser(f"actor-{id}", password, [f"mlmAccess/actor/{id}/status"], [f"mlmAccess/actor/{id}/action"])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue