fixed login_bare uses registration_key without .strip() for boolean testing which causes failure, thanks Remco
This commit is contained in:
2
VERSION
2
VERSION
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user