modify pw
This commit is contained in:
parent
368e89df18
commit
1fbb4f8fcb
|
@ -72,6 +72,14 @@ public class MemberService {
|
||||||
|
|
||||||
public Member modify(Member member) {
|
public Member modify(Member member) {
|
||||||
|
|
||||||
|
Member preMember = this.memberDAO.findByEmail(member.getEmail());
|
||||||
|
|
||||||
|
BCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder();
|
||||||
|
Boolean match = passwordEncoder.matches(member.getPw(), preMember.getPw());
|
||||||
|
if(!match) {
|
||||||
|
throw new SignInPwNotMatchException();
|
||||||
|
}
|
||||||
|
|
||||||
return this.memberDAO.save(member);
|
return this.memberDAO.save(member);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user