Commit 708870ad authored by bgm's avatar bgm Committed by Aegir user
Browse files

org.civicrm.ldapauthapi: add uf_name in response (fixes issues with Gitlab LDAP).

parent ce27b7b2
......@@ -42,6 +42,7 @@ function civicrm_api3_contact_getfromuf($params) {
$result = array(
0 => array(
'uf_name' => $params['username'],
'display_name' => $api['values'][0]['api.Contact.get']['values'][0]['display_name'],
'first_name' => $api['values'][0]['api.Contact.get']['values'][0]['first_name'],
'last_name' => $api['values'][0]['api.Contact.get']['values'][0]['last_name'],
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment