From 2ca339d2b7cfdde817097837033e317a19b4a801 Mon Sep 17 00:00:00 2001 From: Jelle Scholtalbers Date: Tue, 20 Feb 2018 12:58:42 +0100 Subject: [PATCH] fix broken admin 'create new user' when registration =='challenge' --- lib/galaxy/auth/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/galaxy/auth/__init__.py b/lib/galaxy/auth/__init__.py index 52ceb7e7d2d..a0859264d65 100644 --- a/lib/galaxy/auth/__init__.py +++ b/lib/galaxy/auth/__init__.py @@ -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