From bcc12142aef5e5f47de3e99fcaad9c61610a4752 Mon Sep 17 00:00:00 2001 From: Rodney Ewing Date: Tue, 9 Jul 2013 10:49:00 -0700 Subject: [PATCH] only create a user if the register_form is from the ldap plugin --- mediagoblin/plugins/ldap/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mediagoblin/plugins/ldap/__init__.py b/mediagoblin/plugins/ldap/__init__.py index 18203c92..64474cce 100644 --- a/mediagoblin/plugins/ldap/__init__.py +++ b/mediagoblin/plugins/ldap/__init__.py @@ -33,7 +33,8 @@ def setup_plugin(): def create_user(register_form): - return create_basic_user(register_form) + if 'username' in register_form and 'password' not in register_form: + return create_basic_user(register_form) def no_pass_redirect(): -- 2.25.1