Accept "any" (*) password if desired

Credit: https://github.com/micheloosterhof/kippo
This commit is contained in:
g0tmi1k 2014-05-30 05:02:32 +01:00 committed by Upi Tamminen
parent 9203c8ff17
commit 4b4ae526d5
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class UserDB:
'''note that it allows multiple passwords for a single username'''
for (login, uid, passwd) in self.userdb:
if login == thelogin and passwd == thepasswd:
if login == thelogin and (passwd == thepasswd or passwd == '*'):
return True
return False