diff --git a/VERSION b/VERSION index 2aedc7c4..450a62f2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.0.9 (2012-09-16 15:55:07) stable +Version 2.0.9 (2012-09-17 07:10:46) stable diff --git a/gluon/validators.py b/gluon/validators.py index 9aaf4e31..6b467297 100644 --- a/gluon/validators.py +++ b/gluon/validators.py @@ -2593,7 +2593,9 @@ class LazyCrypt(object): key = self.crypt.key else: key = '' - if stored_password.count('$')==2: + if stored_password is None: + return False + elif stored_password.count('$')==2: (digest_alg, salt, hash) = stored_password.split('$') h = simple_hash(self.password, key, salt, digest_alg) temp_pass = '%s$%s$%s' % (digest_alg, salt, h)