fix broken admin 'create new user' when registration =='challenge'

This commit is contained in:
Jelle Scholtalbers
2018-02-20 12:58:42 +01:00
parent 6a3ce34c09
commit 2ca339d2b7
+3 -3
View File
@@ -24,10 +24,10 @@ class AuthManager(object):
for provider, options in self.active_authenticators(email, username, password):
allow_reg = _get_allow_register(options)
if allow_reg == 'challenge':
auth_result, msg = provider.authenticate(email, username, password, options)
if auth_result is True:
auth_results = provider.authenticate(email, username, password, options)
if auth_results[0] is True:
break
if auth_result is None:
if auth_results[0] is None:
message = 'Invalid email address/username or password.'
status = 'error'
break