66import org .openpodcastapi .opa .pagination .CursorUtility ;
77import org .slf4j .Logger ;
88import org .springframework .dao .DataIntegrityViolationException ;
9- import org .springframework .security .crypto .bcrypt . BCryptPasswordEncoder ;
9+ import org .springframework .security .crypto .argon2 . Argon2PasswordEncoder ;
1010import org .springframework .stereotype .Service ;
1111import org .springframework .transaction .annotation .Transactional ;
1212
@@ -23,15 +23,15 @@ public class UserService {
2323 private final UserRepository repository ;
2424 private final CursorRepository cursorRepository ;
2525 private final UserMapper mapper ;
26- private final BCryptPasswordEncoder passwordEncoder ;
26+ private final Argon2PasswordEncoder passwordEncoder ;
2727
2828 /// Required-args constructor
2929 ///
3030 /// @param repository the user repository used for user interactions
3131 /// @param cursorRepository the cursor repository used for paginated requests
3232 /// @param mapper the user mapper used to map user entities and DTOs
3333 /// @param passwordEncoder the password encoder used to handle user passwords
34- public UserService (UserRepository repository , CursorRepository cursorRepository , UserMapper mapper , BCryptPasswordEncoder passwordEncoder ) {
34+ public UserService (UserRepository repository , CursorRepository cursorRepository , UserMapper mapper , Argon2PasswordEncoder passwordEncoder ) {
3535 this .repository = repository ;
3636 this .cursorRepository = cursorRepository ;
3737 this .mapper = mapper ;
0 commit comments