mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Fix tupkg server crash when empty password
This commit is contained in:
parent
b93010dd83
commit
09517611f6
1 changed files with 3 additions and 0 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Reference in a new issue