Skip to content

Commit

Permalink
refactor(ApplicationConfig): 비밀번호를 암호화할 때, 기존에 있던 passwordEncoder 빈을 사용
Browse files Browse the repository at this point in the history
  • Loading branch information
ehBeak committed Aug 23, 2023
1 parent 8f8eedd commit 2b2791e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public UserDetailsService userDetailsService() {

return org.springframework.security.core.userdetails.User.builder()
.username(user.getUserEmail())
.password(new BCryptPasswordEncoder().encode(user.getUserPassword()))
.password(passwordEncoder().encode(user.getUserPassword()))
.authorities(new SimpleGrantedAuthority(user.getRole().name()))
.build();
};
Expand Down

0 comments on commit 2b2791e

Please sign in to comment.