From: Rodney Ewing Date: Tue, 9 Jul 2013 17:49:00 +0000 (-0700) Subject: only create a user if the register_form is from the ldap plugin X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=bcc12142aef5e5f47de3e99fcaad9c61610a4752;p=mediagoblin.git only create a user if the register_form is from the ldap plugin --- 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():