Mercurial > kallithea
changeset 4790:c81379d100e0
pull request: fix user automatically activated with LDAP authentication (Issue #78)
author | Denis Blanchette <dblanchette@coveo.com> |
---|---|
date | Fri, 23 Jan 2015 11:06:06 -0500 |
parents | 21fdc69bd446 |
children | bc81247b84bb |
files | kallithea/lib/auth_modules/auth_ldap.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/lib/auth_modules/auth_ldap.py Fri Jan 23 14:34:17 2015 -0500 +++ b/kallithea/lib/auth_modules/auth_ldap.py Fri Jan 23 11:06:06 2015 -0500 @@ -334,7 +334,7 @@ # old attrs fetched from Kallithea database admin = getattr(userobj, 'admin', False) - active = getattr(userobj, 'active', True) + active = getattr(userobj, 'active', self.user_activation_state()) email = getattr(userobj, 'email', '') firstname = getattr(userobj, 'firstname', '') lastname = getattr(userobj, 'lastname', '')