From 4b4ae526d5a4544787646fbba991c2280926361e Mon Sep 17 00:00:00 2001 From: g0tmi1k Date: Fri, 30 May 2014 05:02:32 +0100 Subject: [PATCH] Accept "any" (*) password if desired Credit: https://github.com/micheloosterhof/kippo --- kippo/core/userdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kippo/core/userdb.py b/kippo/core/userdb.py index 0ecf214b..425a8513 100644 --- a/kippo/core/userdb.py +++ b/kippo/core/userdb.py @@ -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