fixed login_bare uses registration_key without .strip() for boolean testing which causes failure, thanks Remco
This commit is contained in:
@@ -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
|
||||||
|
|||||||
+1
-1
@@ -2015,7 +2015,7 @@ class Auth(object):
|
|||||||
if user and user.get(settings.passfield, False):
|
if user and user.get(settings.passfield, False):
|
||||||
password = settings.table_user[
|
password = settings.table_user[
|
||||||
settings.passfield].validate(password)[0]
|
settings.passfield].validate(password)[0]
|
||||||
if not user.registration_key and password == \
|
if not user.registration_key.strip() and password == \
|
||||||
user[settings.passfield]:
|
user[settings.passfield]:
|
||||||
self.login_user(user)
|
self.login_user(user)
|
||||||
return user
|
return user
|
||||||
|
|||||||
Reference in New Issue
Block a user