You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2017/11/03 21:06:45 UTC

[airavata-php-gateway] 02/02: AIRAVATA-2444 Fix searchUsers to return user fields

This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-php-gateway.git

commit 4f5aff994fce8537dfa4f4f0e03685c5a6fdd396
Author: Marcus Christie <ma...@iu.edu>
AuthorDate: Mon Oct 16 14:39:18 2017 -0400

    AIRAVATA-2444 Fix searchUsers to return user fields
---
 app/libraries/Keycloak/Keycloak.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/libraries/Keycloak/Keycloak.php b/app/libraries/Keycloak/Keycloak.php
index 18dce8f..6b7efe8 100644
--- a/app/libraries/Keycloak/Keycloak.php
+++ b/app/libraries/Keycloak/Keycloak.php
@@ -267,7 +267,7 @@ class Keycloak {
         $users = $this->users->searchUsers($this->realm, $phrase);
         $usernames = [];
         foreach ($users as $user) {
-            $usernames[] = $user->username;
+            array_push($usernames, (object)["firstName"=>$user->firstName,"lastName"=>$user->lastName,"email"=>$user->email,"userName"=>$user->username]);
         }
         return $usernames;
     }

-- 
To stop receiving notification emails like this one, please contact
"commits@airavata.apache.org" <co...@airavata.apache.org>.