ldap: fixed email extraction typo. An empty

ldap email will now not overwritt the stored one.
This commit is contained in:
Marcin Kuzminski 2016-09-30 16:19:12 +02:00
parent b66d7cc7d4
commit 95952e7709

View file

@ -444,7 +444,7 @@ class RhodeCodeAuthPlugin(RhodeCodeExternalAuthPlugin):
'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,