fix approved

This commit is contained in:
GME 2019-06-15 19:50:57 +02:00
parent cae0aec951
commit 656cc77c0a

View file

@ -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()+"\"}";