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/10/16 18:39:42 UTC
airavata-php-gateway git commit: AIRAVATA-2444 Fix searchUsers to
return user fields
Repository: airavata-php-gateway
Updated Branches:
refs/heads/develop 702abd766 -> 626450650
AIRAVATA-2444 Fix searchUsers to return user fields
Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/62645065
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/62645065
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/62645065
Branch: refs/heads/develop
Commit: 626450650f143d378f0396b2c6cfae42ccc49b69
Parents: 702abd7
Author: Marcus Christie <ma...@iu.edu>
Authored: Mon Oct 16 14:39:18 2017 -0400
Committer: Marcus Christie <ma...@iu.edu>
Committed: Mon Oct 16 14:39:18 2017 -0400
----------------------------------------------------------------------
app/libraries/Keycloak/Keycloak.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/62645065/app/libraries/Keycloak/Keycloak.php
----------------------------------------------------------------------
diff --git a/app/libraries/Keycloak/Keycloak.php b/app/libraries/Keycloak/Keycloak.php
index 258fd60..7c4d90c 100644
--- a/app/libraries/Keycloak/Keycloak.php
+++ b/app/libraries/Keycloak/Keycloak.php
@@ -275,7 +275,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;
}