Skip to content

Commit

Permalink
refactor method AuthenticationService.register
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladik-gif committed Nov 16, 2024
1 parent 76933a2 commit 1da3bcf
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,14 @@ public class AuthenticationService {

@Transactional
public RegistrationResponseDto register(ContactRequestDto contactRequestDto, String clientHost) {
final var status = RegistrationResponseDto.builder().registerStatus("success full").build();
log.trace("Started registration contact email: {}", contactRequestDto.getEmail());

var contact = contactService.create(contactRequestDto);

log.info("Saved registered contact {} to repository", contact.getEmail());

activateAccountService.sendVerifyEmail(contact, clientHost);
return status;
return RegistrationResponseDto.builder().registerStatus("success full").build();
}

@Transactional
Expand Down

0 comments on commit 1da3bcf

Please sign in to comment.