diff options
author | Loui Chang <louipc.ist@gmail.com> | 2009-01-04 16:44:19 -0500 |
---|---|---|
committer | Loui Chang <louipc.ist@gmail.com> | 2009-01-04 16:44:19 -0500 |
commit | 6de9b376d8885e93e6b3b638369b8107189e0ecd (patch) | |
tree | 01177dfcf1415b799515182eb20ca3a99125ea92 | |
parent | 6c3e393d4ea2e2d1c518433f5b74a4996dca3404 (diff) | |
download | aurweb-6de9b376d8885e93e6b3b638369b8107189e0ecd.tar.xz |
Stop printing passwords in tupkgs output.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
-rwxr-xr-x | tupkg/server/tupkgs | 6 |
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() |