Skip to content

Commit

Permalink
Merge pull request #730 from GraudationProject2023/Seongbo
Browse files Browse the repository at this point in the history
Seongbo
  • Loading branch information
cseongbo authored Sep 24, 2023
2 parents 3d4de13 + 75d1d89 commit 0b7abae
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,17 @@ public void exit(Member member) {
// 비밀 번호 변경
@Transactional
public void changePw(Member member, String pw) {

// System.out.println(passwordEncoder.encode(CharBuffer.wrap(pwArr)));
member.changePw(passwordEncoder.encode(CharBuffer.wrap(pw)));
}

// 비밀 번호 찾기
public boolean findPw(String email, String pw) {

Member member = memberRepository.findByEmail(email).get();
return member.getPw().equals(passwordEncoder.encode(CharBuffer.wrap(pw)));
// System.out.println(passwordEncoder.encode(CharBuffer.wrap(pwArr)));
return passwordEncoder.matches(pw, member.getPw());
}

public List<MemberInfo> memberList(Long id) {
Expand Down

0 comments on commit 0b7abae

Please sign in to comment.