[Users | Trunk]: Change email field to name when return user name
This commit is contained in:
parent
86ae8c51e8
commit
ec6dd1900d
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue