fix approved
This commit is contained in:
parent
cae0aec951
commit
656cc77c0a
|
@ -173,7 +173,7 @@ public class UserResource {
|
||||||
try {
|
try {
|
||||||
UserImplementation userImplementation = new UserImplementation();
|
UserImplementation userImplementation = new UserImplementation();
|
||||||
User r = userImplementation.getUserWithMailAndPhone(email,phone);
|
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);
|
return ResponseEntity.status(HttpStatus.OK).body(response);
|
||||||
}catch (Exception e){
|
}catch (Exception e){
|
||||||
String r = "{\"response\":\""+e.getMessage()+"\"}";
|
String r = "{\"response\":\""+e.getMessage()+"\"}";
|
||||||
|
|
Loading…
Reference in a new issue