Updated confserver

Updated confserver to use tinydb and set users, tokens, authcodes
This commit is contained in:
Brian Martin 2019-03-03 10:28:52 -05:00
parent a4fec85717
commit 8806e804f0
4 changed files with 139 additions and 80 deletions

View file

@ -404,7 +404,7 @@ class BumperMQTTServer_Plugin:
clientresource = didsplit[1].split("/")[1]
client = bumper.client_get(clientresource)
if client:
bumper.client_set_mqtt(client['userid'], False)
bumper.client_set_mqtt(client['resource'], False)
except Exception as e:
mqttserverlog.exception("{}".format(e))