Fix tupkg server crash when empty password

This commit is contained in:
simo 2005-06-17 01:31:38 +00:00
parent b93010dd83
commit 09517611f6

View file

@ -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])