Commit f35e5b2c authored by shishir suman's avatar shishir suman
Browse files

bug fixes

Showing with 5 additions and 1 deletion
+5 -1
......@@ -61,10 +61,14 @@ public class UserController {
}
attributes.put("departmentName", department);
attributes.put("phoneNumber", Arrays.asList(body.getPhoneNumber()));
boolean enabled = false;
if(body.getStatus() == 1) {
enabled = true;
}
UserResponseDto userResponseDto = UserResponseDto.builder()
.email(body.getEmail())
.emailVerified(body.isEmailVerified())
.enabled(Boolean.valueOf(String.valueOf(body.getStatus())))
.enabled(enabled)
.firstName(body.getFirstName())
.lastName(body.getLastname())
.id(body.getId())
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment