From bf249f395a5186cda4149225549d851513344e9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?hagjoon=28=EC=9D=B4=ED=95=99=EC=A4=80=29?= Date: Wed, 19 Oct 2022 15:41:44 +0900 Subject: [PATCH] =?UTF-8?q?=ED=94=84=EB=A1=9C=ED=95=84=20-=20=EC=A1=B0?= =?UTF-8?q?=EA=B1=B4=20=EC=88=9C=EC=84=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../palnet/biz/api/acnt/cstmr/service/AcntCstmrService.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/palnet/biz/api/acnt/cstmr/service/AcntCstmrService.java b/src/main/java/com/palnet/biz/api/acnt/cstmr/service/AcntCstmrService.java index 240b17c..01113fb 100644 --- a/src/main/java/com/palnet/biz/api/acnt/cstmr/service/AcntCstmrService.java +++ b/src/main/java/com/palnet/biz/api/acnt/cstmr/service/AcntCstmrService.java @@ -254,11 +254,10 @@ public class AcntCstmrService { PtyCstmrBas userEntity = ptyCstmrBasRepository.findById(userId).orElse(null); // 3. RQ의 유저 패스워드를 암호화 처리 - if(!userPswd.isEmpty() && userPswd != null){ + if(userPswd != null && !userPswd.isEmpty()){ userPswd = EncryptUtils.sha256Encrypt(userPswd); } - // 4. RQ의 암호화한 패스워드와 DB에서 조회한 유저의 패스워드랑 비교 if(!userPswd.equals(userEntity.getUserPswd())) { log.info("USERPSWD 비밀번호 : {}, DB 비밀번호 : {}", userPswd, userEntity.getUserPswd());