Cleanup email unpacking

This commit is contained in:
Timothée Floure 2019-10-31 17:45:48 +01:00
parent bcd855df3c
commit af79def2b5

View file

@ -119,7 +119,10 @@ def sync_list(list_name, ldap_group_entry, ldap_conn)
if matched_ldap_users.nil? || matched_ldap_users.empty?
""
else
matched_ldap_users.first.mail.first
user = matched_ldap_users.first
address = mail.first # 'mail' is an array for some reason.
address
end
end