fixed problem CRYPT password comparsion, issue 1203, thanks Alan
This commit is contained in:
2
VERSION
2
VERSION
@@ -1 +1 @@
|
||||
Version 2.3.0 (2012-12-06 23:01:24) rc1
|
||||
Version 2.3.0 (2012-12-06 23:03:48) rc1
|
||||
|
||||
@@ -2633,6 +2633,13 @@ class LazyCrypt(object):
|
||||
"""
|
||||
compares the current lazy crypted password with a stored password
|
||||
"""
|
||||
|
||||
# LazyCrypt objects comparison
|
||||
if isinstance(stored_password, self.__class__):
|
||||
return ((self is stored_password) or
|
||||
((self.crypt.key == stored_password.crypt.key) and
|
||||
(self.password == stored_password.password)))
|
||||
|
||||
if self.crypt.key:
|
||||
if ':' in self.crypt.key:
|
||||
key = self.crypt.key.split(':')[1]
|
||||
|
||||
Reference in New Issue
Block a user