Fix authenticator

This commit is contained in:
Fierelier 2022-05-30 11:36:53 +02:00
parent 220c0005ba
commit 2ef0d0654a

View File

@ -15,8 +15,6 @@ def clientLoopIn(self):
if not "channel" in args: args["channel"] = "default" if not "channel" in args: args["channel"] = "default"
if not "channel-password" in args: args["channel-password"] = "" if not "channel-password" in args: args["channel-password"] = ""
if not authenticate(args["user"],args["user-password"]): return
with clientDataLock: with clientDataLock:
setClientData(self.cID,"type",cmd[0]) setClientData(self.cID,"type",cmd[0])
setClientData(self.cID,"args",args) setClientData(self.cID,"args",args)
@ -30,6 +28,7 @@ def clientLoopIn(self):
setClientData(self.cID,"queue",q) setClientData(self.cID,"queue",q)
if cmd[0] == "broadcast": if cmd[0] == "broadcast":
if not authenticate(args["user"],args["user-password"]): return
buffer = getClientData(self.cID,"buffer") buffer = getClientData(self.cID,"buffer")
packet = -1 packet = -1
packetMin = 0 packetMin = 0