Fixed authentication using different login methods.
This commit is contained in:
1 parent
236fdcfafc
commit
918fdf2f0c
1 file changed
+2
-2
+2
-2
@@ -2323,8 +2323,8 @@ class Auth(object):
|
||||
# user not in database try other login methods
|
||||
for login_method in self.settings.login_methods:
|
||||
if login_method != self and login_method(username, password):
|
||||
self.user = username
|
||||
return username
|
||||
self.user = user
|
||||
return user
|
||||
return False
|
||||
|
||||
def register_bare(self, **fields):
|
||||
|
||||
Reference in new issue
Block a user