Stop printing passwords in tupkgs output.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
Loui Chang 2009-01-04 16:44:19 -05:00
parent 6c3e393d4e
commit 6de9b376d8

View file

@ -110,7 +110,10 @@ class ClientSocket(threading.Thread):
def auth(self): def auth(self):
authdata = self.readMsg(1) authdata = self.readMsg(1)
print authdata
if (authdata.has_key('username')):
print "Trying connection for user %s" % authdata['username']
if (not authdata.has_key('username')) or (not authdata.has_key('password')): if (not authdata.has_key('username')) or (not authdata.has_key('password')):
self.sendMsg("result=FAIL") self.sendMsg("result=FAIL")
return 0 return 0
@ -189,6 +192,7 @@ class ClientSocket(threading.Thread):
def run(self): def run(self):
try: try:
if not self.auth(): if not self.auth():
print "Error authenticating."
self.close() self.close()
return return
self.readFileMeta() self.readFileMeta()