From 9c34b231aa915e038bea327fb3581f583eadd007 Mon Sep 17 00:00:00 2001 From: James Vega Date: Fri, 14 Oct 2005 12:58:41 +0000 Subject: [PATCH] src/ircdb: checkPassword should return false when password is None instead of trying to continue with the check. --- src/ircdb.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ircdb.py b/src/ircdb.py index 5a966b656..a61282380 100644 --- a/src/ircdb.py +++ b/src/ircdb.py @@ -255,6 +255,8 @@ class IrcUser(object): def checkPassword(self, password): """Checks the user's password.""" + if password is None: + return False if self.hashed: (salt, _) = self.password.split('|') return (self.password == utils.saltHash(password, salt=salt))