diff options
author | Marcin Kuzminski <marcin@python-works.com> | 2011-10-31 20:50:34 +0200 |
---|---|---|
committer | Marcin Kuzminski <marcin@python-works.com> | 2011-10-31 20:50:34 +0200 |
commit | 790b9d5e2b1c6420149cfb68e64aa7004dcc6abb (patch) | |
tree | 10c09fe033579a94c806593819ab09aee570bc1c /rhodecode/model/user.py | |
parent | deecad87c4083db0b5e848d861a70d4f2d605686 (diff) |
fixed ldap_user active flag hardcoded
--HG--
branch : beta
Diffstat (limited to 'rhodecode/model/user.py')
-rw-r--r-- | rhodecode/model/user.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rhodecode/model/user.py b/rhodecode/model/user.py index 0c89a92d..b0784af4 100644 --- a/rhodecode/model/user.py +++ b/rhodecode/model/user.py @@ -112,7 +112,7 @@ class UserModel(BaseModel): new_user.password = get_crypt_password(password) new_user.api_key = generate_api_key(username) new_user.email = attrs['email'] - new_user.active = True + new_user.active = attrs.get('active',True) new_user.ldap_dn = safe_unicode(user_dn) new_user.name = attrs['name'] new_user.lastname = attrs['lastname'] |