aboutsummaryrefslogtreecommitdiff
path: root/rhodecode/model/user.py
diff options
context:
space:
mode:
authorMarcin Kuzminski <marcin@python-works.com>2011-10-31 20:50:34 +0200
committerMarcin Kuzminski <marcin@python-works.com>2011-10-31 20:50:34 +0200
commit790b9d5e2b1c6420149cfb68e64aa7004dcc6abb (patch)
tree10c09fe033579a94c806593819ab09aee570bc1c /rhodecode/model/user.py
parentdeecad87c4083db0b5e848d861a70d4f2d605686 (diff)
fixed ldap_user active flag hardcoded
--HG-- branch : beta
Diffstat (limited to 'rhodecode/model/user.py')
-rw-r--r--rhodecode/model/user.py2
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']