Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. void signUpUser(User user) {
  2.  
  3. final String encryptedPassword = bCryptPasswordEncoder.encode(user.getPassword());
  4.  
  5. user.setPassword(encryptedPassword);
  6.  
  7. final User createdUser = userRepository.save(user);
  8.  
  9. final ConfirmationToken confirmationToken = new ConfirmationToken(user);
  10.  
  11. confirmationTokenService.saveConfirmationToken(confirmationToken);
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement