change randomid to 4 characters #93

Merged
bmartin5692 merged 1 commit from fix-92 into master 2020-01-25 21:30:27 +01:00
Showing only changes of commit 82d5448eb7 - Show all commits

View file

@ -29,7 +29,7 @@ class portal_api_iot(plugins.ConfServerApp):
try:
json_body = json.loads(await request.text())
randomid = "".join(random.sample(string.ascii_letters, 6))
randomid = "".join(random.sample(string.ascii_letters, 4))
did = ""
if "toId" in json_body: # Its a command
did = json_body["toId"]