# HG changeset patch # User Marcin Kuzminski # Date 2016-09-30 14:19:12 # Node ID 8170c0f9dc08929e9214cd9014ea3ab3127df8b1 # Parent 6e9c802c4b9e926d68ae351b0b91e2fdd2abbced ldap: fixed email extraction typo. An empty ldap email will now not overwritt the stored one. diff --git a/rhodecode/authentication/plugins/auth_ldap.py b/rhodecode/authentication/plugins/auth_ldap.py --- a/rhodecode/authentication/plugins/auth_ldap.py +++ b/rhodecode/authentication/plugins/auth_ldap.py @@ -444,7 +444,7 @@ class RhodeCodeAuthPlugin(RhodeCodeExter 'lastname': safe_unicode( get_ldap_attr('attr_lastname') or lastname), 'groups': groups, - 'email': get_ldap_attr('attr_email' or email), + 'email': get_ldap_attr('attr_email') or email, 'admin': admin, 'active': active, "active_from_extern": None,