airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From machris...@apache.org
Subject [airavata-php-gateway] 02/02: AIRAVATA-2444 Fix searchUsers to return user fields
Date Fri, 03 Nov 2017 21:06:45 GMT
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 <machrist@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" <commits@airavata.apache.org>.

Mime
View raw message