only create a user if the register_form is from the ldap plugin
authorRodney Ewing <ewing.rj@gmail.com>
Tue, 9 Jul 2013 17:49:00 +0000 (10:49 -0700)
committerRodney Ewing <ewing.rj@gmail.com>
Thu, 15 Aug 2013 22:58:14 +0000 (15:58 -0700)
mediagoblin/plugins/ldap/__init__.py

index 18203c92e302ad31e69efecf2d1b5fb142e12021..64474cce5cd70bed6b6c970570db40d0ea71f939 100644 (file)
@@ -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():