|
|
|
@ -91,6 +91,9 @@ public class AcntCrtfyhpService {
|
|
|
|
|
@Autowired |
|
|
|
|
private PtyCrtfyhpBasRepository ptyCrtfyhpBasRepository; |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private PtyCstmrBasRepository ptyCstmrBasRepository; |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private SuredataRepository sureDataRepository; |
|
|
|
|
|
|
|
|
@ -212,10 +215,36 @@ public class AcntCrtfyhpService {
|
|
|
|
|
} |
|
|
|
|
return certifNum; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public String findUserId(String memberName, String hpno) throws Exception{ |
|
|
|
|
String name = EncryptUtils.encrypt(memberName); |
|
|
|
|
String phone = EncryptUtils.encrypt(hpno); |
|
|
|
|
String resultFindId = cstmrQuery.findUserId(name,phone); |
|
|
|
|
return resultFindId; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public boolean certifPw(String userId, String hpno) throws Exception{ |
|
|
|
|
String phone = EncryptUtils.encrypt(hpno); |
|
|
|
|
PtyCstmrBas certifNum = cstmrQuery.findUserPw(userId , phone); |
|
|
|
|
boolean result = false; |
|
|
|
|
if(certifNum != null) { |
|
|
|
|
certifySend(hpno); |
|
|
|
|
result = true; |
|
|
|
|
} |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public boolean updatePw(String userId, String hpno, String newPw) throws Exception{ |
|
|
|
|
String phone = EncryptUtils.encrypt(hpno); |
|
|
|
|
PtyCstmrBas certifNum = cstmrQuery.findUserPw(userId , phone); |
|
|
|
|
boolean result = false; |
|
|
|
|
if(certifNum != null) { |
|
|
|
|
String encryptPw = EncryptUtils.sha256Encrypt(newPw); |
|
|
|
|
certifNum.setUserPswd(encryptPw); |
|
|
|
|
certifNum.setPswdUpdtDt(DateUtils.nowDate()); |
|
|
|
|
ptyCstmrBasRepository.save(certifNum); |
|
|
|
|
result = true; |
|
|
|
|
} |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|