From c3076dec9906f4edd8ef927b1cd5e444e01d9db0 Mon Sep 17 00:00:00 2001 From: Rafa Hernandez Date: Wed, 26 Sep 2018 10:39:01 -0400 Subject: [PATCH] fix(enrollment): trim the inventory Signed-off-by: Rafa Hernandez --- .../org/flyve/mdm/agent/core/enrollment/EnrollmentModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/flyve/mdm/agent/core/enrollment/EnrollmentModel.java b/app/src/main/java/org/flyve/mdm/agent/core/enrollment/EnrollmentModel.java index c09f9652d3..87d2d575b5 100644 --- a/app/src/main/java/org/flyve/mdm/agent/core/enrollment/EnrollmentModel.java +++ b/app/src/main/java/org/flyve/mdm/agent/core/enrollment/EnrollmentModel.java @@ -154,7 +154,7 @@ public void enroll(final Activity activity, final List arrE JSONObject payload = new JSONObject(); - String mInventory = Helpers.base64encode( inventory.toString() ); + String mInventory = Helpers.base64encode( inventory.trim() ); payload.put("_email", arrEmails.get(0).getEmail()); // get first email payload.put("_invitation_token", invitationToken);