Skip to content

Commit

Permalink
Merge pull request #731 from GraudationProject2023/main
Browse files Browse the repository at this point in the history
PR
  • Loading branch information
dydgus1052 authored Sep 24, 2023
2 parents 47ae25b + 0b7abae commit f98fdbb
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 f98fdbb

Please sign in to comment.