Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
00b1cb7a4f
|
@ -41,7 +41,7 @@ public class MemberService {
|
|||
return m;
|
||||
}
|
||||
|
||||
public Member signup(Member member) {
|
||||
public Member signup(Member member, String pw) {
|
||||
|
||||
Member isMember = this.memberDAO.findByEmail(member.getEmail());
|
||||
|
||||
|
@ -50,7 +50,7 @@ public class MemberService {
|
|||
}
|
||||
|
||||
BCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder();
|
||||
member.setPw(passwordEncoder.encode(member.getPw()));
|
||||
member.setPw(passwordEncoder.encode(pw));
|
||||
|
||||
if (member.getStatus() == null) {
|
||||
member.setStatus(new MetaMemberStatus((short) 1));
|
||||
|
|
|
@ -37,7 +37,7 @@ public class MemberServiceTest {
|
|||
m.setName("administrator");
|
||||
m.setPhone("00000000");
|
||||
|
||||
Member res = this.memberService.signup(m);
|
||||
Member res = this.memberService.signup(m,"!@#$qwer1234");
|
||||
Assert.assertNotNull(res);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user