signup email send
This commit is contained in:
parent
a07d063be1
commit
8618725dda
|
@ -1,5 +1,6 @@
|
||||||
package com.loafle.overflow.module.member.service;
|
package com.loafle.overflow.module.member.service;
|
||||||
|
|
||||||
|
import com.loafle.overflow.module.email.service.EmailAuthService;
|
||||||
import com.loafle.overflow.module.member.dao.MemberDAO;
|
import com.loafle.overflow.module.member.dao.MemberDAO;
|
||||||
import com.loafle.overflow.module.member.exception.EmailNotConfirmedException;
|
import com.loafle.overflow.module.member.exception.EmailNotConfirmedException;
|
||||||
import com.loafle.overflow.module.member.exception.SignInIdNotExistException;
|
import com.loafle.overflow.module.member.exception.SignInIdNotExistException;
|
||||||
|
@ -19,6 +20,9 @@ public class MemberService {
|
||||||
@Autowired
|
@Autowired
|
||||||
private MemberDAO memberDAO;
|
private MemberDAO memberDAO;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private EmailAuthService emailAuthService;
|
||||||
|
|
||||||
public Member signin(String signinId, String signinPw) throws SignInIdNotExistException, EmailNotConfirmedException, SignInPwNotExactException {
|
public Member signin(String signinId, String signinPw) throws SignInIdNotExistException, EmailNotConfirmedException, SignInPwNotExactException {
|
||||||
Member m = this.memberDAO.findByEmail(signinId);
|
Member m = this.memberDAO.findByEmail(signinId);
|
||||||
|
|
||||||
|
@ -47,7 +51,12 @@ public class MemberService {
|
||||||
if (member.getStatus() == null) {
|
if (member.getStatus() == null) {
|
||||||
member.setStatus(new MetaMemberStatus((short) 1));
|
member.setStatus(new MetaMemberStatus((short) 1));
|
||||||
}
|
}
|
||||||
return this.memberDAO.save(member);
|
|
||||||
|
Member resMember = this.memberDAO.save(member);
|
||||||
|
|
||||||
|
this.emailAuthService.sendEmailByMember(member.getId(), member.getEmail());
|
||||||
|
|
||||||
|
return resMember;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void signout(Member member) {
|
public void signout(Member member) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user