diff options
Diffstat (limited to 'tupkg')
-rwxr-xr-x | tupkg/server/tupkgs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tupkg/server/tupkgs b/tupkg/server/tupkgs index 77aef56..ca9ab26 100755 --- a/tupkg/server/tupkgs +++ b/tupkg/server/tupkgs @@ -112,6 +112,9 @@ class ClientSocket(threading.Thread): def auth(self): authdata = self.readMsg(1) print authdata + if (not authdata.has_key('username')) or (not authdata.has_key('password')): + self.sendMsg("result=FAIL") + return 0 q = self.db.cursor() m = md5.new() m.update(authdata['password'][0]) |