Merge remote-tracking branch 'origin/master'

This commit is contained in:
snoop 2017-08-24 15:29:33 +09:00
commit 00b1cb7a4f
2 changed files with 3 additions and 3 deletions

View File

@ -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));

View File

@ -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);
}