summaryrefslogtreecommitdiffstats
path: root/tupkg
diff options
context:
space:
mode:
Diffstat (limited to 'tupkg')
-rwxr-xr-xtupkg/server/tupkgs6
1 files changed, 5 insertions, 1 deletions
diff --git a/tupkg/server/tupkgs b/tupkg/server/tupkgs
index e43f15d..ec96d4b 100755
--- a/tupkg/server/tupkgs
+++ b/tupkg/server/tupkgs
@@ -110,7 +110,10 @@ class ClientSocket(threading.Thread):
def auth(self):
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')):
self.sendMsg("result=FAIL")
return 0
@@ -189,6 +192,7 @@ class ClientSocket(threading.Thread):
def run(self):
try:
if not self.auth():
+ print "Error authenticating."
self.close()
return
self.readFileMeta()