Skip to content

Commit

Permalink
[fix] 비밀번호 재설정 저장 로직 수정 #52
Browse files Browse the repository at this point in the history
  • Loading branch information
suhhyun524 committed Jul 8, 2023
1 parent abbb792 commit 0938aa6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ public String generateRandomPwd() {
}

public void setRandomPwd(Admin admin, String randomPwd) {
admin.updateRandomPwd(randomPwd);

final String tempPassword = passwordEncoder.encode(randomPwd);
admin.updateRandomPwd(tempPassword);
adminRepository.save(admin);
}

Expand Down

0 comments on commit 0938aa6

Please sign in to comment.