[Users | Trunk]: Change email field to name when return user name

This commit is contained in:
Konstantinos Triantafyllou 2020-08-14 13:34:19 +00:00
parent 86ae8c51e8
commit ec6dd1900d
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ public class RegistryCalls {
JsonArray names = new JsonArray(); JsonArray names = new JsonArray();
infos.forEach(info -> { infos.forEach(info -> {
JsonObject user = new JsonObject(); JsonObject user = new JsonObject();
user.addProperty("email", info.getAsJsonObject().get("Given").getAsString() + " " + info.getAsJsonObject().get("Family").getAsString()); user.addProperty("name", info.getAsJsonObject().get("Given").getAsString() + " " + info.getAsJsonObject().get("Family").getAsString());
user.addProperty("memberSince", info.getAsJsonObject().get("Created").getAsString()); user.addProperty("memberSince", info.getAsJsonObject().get("Created").getAsString());
names.add(user); names.add(user);
}); });