fixed login_bare uses registration_key without .strip() for boolean testing which causes failure, thanks Remco

This commit is contained in:
mdipierro
2014-01-08 11:14:02 -06:00
parent 5a0aec5b1d
commit 10e0ff71bf
2 changed files with 2 additions and 2 deletions

View File

@@ -1 +1 @@
Version 2.8.2-stable+timestamp.2014.01.08.10.23.41
Version 2.8.2-stable+timestamp.2014.01.08.11.12.43

View File

@@ -2015,7 +2015,7 @@ class Auth(object):
if user and user.get(settings.passfield, False):
password = settings.table_user[
settings.passfield].validate(password)[0]
if not user.registration_key and password == \
if not user.registration_key.strip() and password == \
user[settings.passfield]:
self.login_user(user)
return user