- 초기 패스워드 접미사 설정 로직 추가 및 관련 JSP 수정
eapim-admin CI / build (push) Has been cancelled

- API 허용 IP 리스트 변수명 변경(dapiAllowIpList → apiAllowIpList)
- 초기 패스워드 강제 변경 유도 로직 추가(비밀번호 변경일 초기화)
This commit is contained in:
Rinjae
2026-07-27 15:05:51 +09:00
parent adc5371df8
commit 8f4162569d
4 changed files with 17 additions and 5 deletions
@@ -567,7 +567,7 @@
});
$("#btn_password_reset").click(function () {
if (!confirm("패스워드를 초기화 하시겠습니까?\n초기 패스워드는 '!' + 이메일ID 입니다.")) return;
if (!confirm("패스워드를 초기화 하시겠습니까?\n초기 패스워드는 '이메일ID${passwordInitSubfix}' 입니다.")) return;
$.ajax({
type: "POST",
@@ -41,7 +41,7 @@ public class DjbProperty {
description = "API 접근 허용 IP 목록 (콤마(,)로 구분된 IP들, 예: 192.168.0.1, 192.168.1.*,127.*.*.*",
defaultValue = "10.15.106.*, 10.14.8.*, 10.15.8.*, 192.168.240.*, 127.0.0.1, 192.168.132.*, 192.168.131.*"
)
private String dapiAllowIpList = "10.15.106.*, 10.14.8.*, 10.15.8.*, 192.168.240.*, 127.0.0.1, 192.168.132.*, 192.168.131.*";
private String apiAllowIpList = "10.15.106.*, 10.14.8.*, 10.15.8.*, 192.168.240.*, 127.0.0.1, 192.168.132.*, 192.168.131.*";
@@ -38,7 +38,8 @@ public class PortalUserManController extends BaseAnnotationController {
}
@GetMapping(value = "/onl/apim/portaluser/portalUserMan.view", params = "cmd=DETAIL")
public String detailNewView() {
public String detailNewView(Model model) {
model.addAttribute("passwordInitSubfix", portalUserManService.getPasswordInitSubfix());
return "/onl/apim/portaluser/portalUserManDetail";
}
@@ -10,6 +10,7 @@ import com.eactive.apim.portal.portaluser.entity.PortalUserEnums;
import com.eactive.apim.portal.portaluser.entity.PortalUserPrivacyAgreement;
import com.eactive.eai.common.util.SystemUtil;
import com.eactive.eai.rms.common.base.BaseService;
import com.eactive.eai.rms.common.context.MonitoringContext;
import com.eactive.eai.rms.common.spring.LocaleMessage;
import com.eactive.eai.rms.data.entity.onl.apim.approval.ApprovalService;
import com.eactive.eai.rms.data.entity.onl.apim.portalinquiry.PortalInquiryService;
@@ -61,6 +62,7 @@ public class PortalUserManService extends BaseService {
private final ApprovalService approvalService;
private final PortalInquiryService portalInquiryService;
private final PortalPropertyService portalPropertyService;
private final MonitoringContext monitoringContext;
/** 가입자 목록 '선택 삭제'(완전삭제) 버튼 노출 여부 */
public boolean isHardDeleteEnabled() {
@@ -270,11 +272,20 @@ public class PortalUserManService extends BaseService {
portalUserService.deleteById(id);
}
/** 초기 패스워드 접미사(loginId + subfix). 초기화 안내 문구 노출에도 사용. */
public String getPasswordInitSubfix() {
return monitoringContext.getStringProperty(MonitoringContext.RMS_PASSWORD_INIT_SUBFIX, "@!");
}
public void passwordReset(String id) {
PortalUser portalUser = portalUserService.getById(id);
// 패스워드를 초기 패스워드("!" + loginId)로 초기화
portalUser.setPasswordHash(kjbSafedbPasswordEncoder.encode("!" + portalUser.getLoginId()));
// 패스워드를 초기 패스워드(loginId + subfix)로 초기화
String subfix = getPasswordInitSubfix();
portalUser.setPasswordHash(kjbSafedbPasswordEncoder.encode(portalUser.getLoginId() + subfix));
// 비밀번호 변경일 초기화 (초기 비밀번호 강제 변경 유도)
portalUser.setPasswordChangeDate(null);
// 로그인 실패 횟수 초기화
portalUser.setLoginFailureCount(0);