|
@@ -7,6 +7,7 @@ import com.its.op.dto.its.oper.TbUserInfrDto;
|
|
|
import com.its.op.dto.its.oper.UserGropMenuInf;
|
|
|
import com.its.op.dto.its.oper.UserMenuDto;
|
|
|
import com.its.op.entity.its.oper.TbUserInfr;
|
|
|
+import com.its.utils.SHA256Util;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
@@ -138,7 +139,7 @@ public class TbUserInfrService {
|
|
|
/**
|
|
|
* 입력한 비밀번호를 암호화 한다.
|
|
|
*/
|
|
|
- String pswd = this.repo.getCryptoEncrypt(orgPswd);
|
|
|
+ String pswd = SHA256Util.encrypt(orgPswd);//this.repo.getCryptoEncrypt(orgPswd);
|
|
|
if (entity.getPwd().equals(pswd)) {
|
|
|
// 입력한 비밀번호 암호화한 값이 이전 비밀번호 암호화 내용과 같음
|
|
|
throw new NoSuchElementException("현재 비빌번호와 같습니다[2]: " + id);
|
|
@@ -197,12 +198,14 @@ public class TbUserInfrService {
|
|
|
|
|
|
@Transactional(readOnly = true)
|
|
|
public String getCryptoEncrypt(String pswd) {
|
|
|
- return this.repo.getCryptoEncrypt(pswd);
|
|
|
+ return SHA256Util.encrypt(pswd);
|
|
|
+ //return this.repo.getCryptoEncrypt(pswd);
|
|
|
}
|
|
|
|
|
|
@Transactional(readOnly = true)
|
|
|
public String getCryptoDecrypt(String pswd) {
|
|
|
- return this.repo.getCryptoDecrypt(pswd);
|
|
|
+ return pswd;
|
|
|
+ //return this.repo.getCryptoDecrypt(pswd);
|
|
|
}
|
|
|
|
|
|
@Transactional(readOnly = true)
|