Skip to content

Commit

Permalink
fix: explicity set email verification to false
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Eberl committed Dec 19, 2022
1 parent 85e08f0 commit 4cbd75f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
public class UserUpdateDataDTO {

private String email;
private boolean verified;
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ private UserDTO buildValidatedUserDTO(

private UserUpdateRequestDTO buildUserUpdateRequestDTO(
String rcUserId, UpdateAdminConsultantDTO updateConsultantDTO) {
UserUpdateDataDTO userUpdateDataDTO = new UserUpdateDataDTO(updateConsultantDTO.getEmail());
UserUpdateDataDTO userUpdateDataDTO = new UserUpdateDataDTO(updateConsultantDTO.getEmail(),
false);
return new UserUpdateRequestDTO(rcUserId, userUpdateDataDTO);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public void changeUserAccountEmailAddress(Optional<String> optionalEmail) {
}

private void updateConsultantEmail(Consultant consultant, String email) {
UserUpdateDataDTO userUpdateDataDTO = new UserUpdateDataDTO(email);
UserUpdateDataDTO userUpdateDataDTO = new UserUpdateDataDTO(email, false);
UserUpdateRequestDTO requestDTO =
new UserUpdateRequestDTO(consultant.getRocketChatId(), userUpdateDataDTO);
this.rocketChatService.updateUser(requestDTO);
Expand All @@ -119,7 +119,7 @@ private void updateConsultantEmail(Consultant consultant, String email) {
}

private void updateUserEmail(User user, String email) {
UserUpdateDataDTO userUpdateDataDTO = new UserUpdateDataDTO(email);
UserUpdateDataDTO userUpdateDataDTO = new UserUpdateDataDTO(email, false);
UserUpdateRequestDTO requestDTO =
new UserUpdateRequestDTO(user.getRcUserId(), userUpdateDataDTO);
this.rocketChatService.updateUser(requestDTO);
Expand Down

0 comments on commit 4cbd75f

Please sign in to comment.