mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Stop printing passwords in tupkgs output.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
parent
6c3e393d4e
commit
6de9b376d8
1 changed files with 5 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Reference in a new issue