diff options
author | Rodney Ewing <ewing.rj@gmail.com> | 2013-07-09 10:49:00 -0700 |
---|---|---|
committer | Rodney Ewing <ewing.rj@gmail.com> | 2013-08-15 15:58:14 -0700 |
commit | bcc12142aef5e5f47de3e99fcaad9c61610a4752 (patch) | |
tree | 0b061d12a891f3ddc3c8f309e9adf05a8627abb0 | |
parent | 517eb8b4433888a3ac11f0ed9efeb30dca68838b (diff) | |
download | mediagoblin-bcc12142aef5e5f47de3e99fcaad9c61610a4752.tar.lz mediagoblin-bcc12142aef5e5f47de3e99fcaad9c61610a4752.tar.xz mediagoblin-bcc12142aef5e5f47de3e99fcaad9c61610a4752.zip |
only create a user if the register_form is from the ldap plugin
-rw-r--r-- | mediagoblin/plugins/ldap/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
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(): |