Skip to content

Commit

Permalink
- Fix User Signup - p2
Browse files Browse the repository at this point in the history
  • Loading branch information
mohityadav766 committed Jun 14, 2024
1 parent e48f4c6 commit e42e52a
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -578,12 +578,15 @@ public Response createUser(
}
}

// Send Invite mail to user
sendInviteMailToUserForBasicAuth(uriInfo, user, create);
if (createdUserRes != null) {
// Send Invite mail to user
sendInviteMailToUserForBasicAuth(uriInfo, user, create);

// Update response to remove auth fields
decryptOrNullify(securityContext, (User) createdUserRes.getEntity());
return createdUserRes;
// Update response to remove auth fields
decryptOrNullify(securityContext, (User) createdUserRes.getEntity());
return createdUserRes;
}
return Response.status(BAD_REQUEST).entity("User Cannot be created Successfully.").build();
}

private void validateAndAddUserAuthForBasic(User user, CreateUser create) {
Expand Down

0 comments on commit e42e52a

Please sign in to comment.