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 c2b6bf9764
commit c0e4fc7dcd

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,