diff --git a/src/main/java/restService/UserResource.java b/src/main/java/restService/UserResource.java index 67f7a64..ebc6f3c 100644 --- a/src/main/java/restService/UserResource.java +++ b/src/main/java/restService/UserResource.java @@ -173,7 +173,7 @@ public class UserResource { try { UserImplementation userImplementation = new UserImplementation(); User r = userImplementation.getUserWithMailAndPhone(email,phone); - String response = "{\"name\":\""+r.getName()+"\",\"firstname\":\""+r.getFirstname()+"\",\"user_hash\":\""+r.getUser_hash()+"\"}"; + String response = "{\"name\":\""+r.getName()+"\",\"firstname\":\""+r.getFirstname()+"\",\"user_hash\":\""+r.getUser_hash()+"\",\"approved\":\""+r.isApproved()+"\"}"; return ResponseEntity.status(HttpStatus.OK).body(response); }catch (Exception e){ String r = "{\"response\":\""+e.getMessage()+"\"}";