diff --git a/VERSION b/VERSION index 86c22746..5aee8290 100644 --- a/VERSION +++ b/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 diff --git a/gluon/validators.py b/gluon/validators.py index 9ab4c99d..6ec44656 100644 --- a/gluon/validators.py +++ b/gluon/validators.py @@ -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]