회원가입 제출 필드 개선: 선택 입력 포함 모든 항목 전송 처리

This commit is contained in:
Rinjae
2026-06-30 10:54:08 +09:00
parent 97b9d2161a
commit 06c18e437b
@@ -129,6 +129,14 @@
} }
}; };
// 제출 대상 org 필드 (검증 필수목록과 별개 - 선택입력 포함 전 필드 전송)
// 제외: ipWhitelist(가입 미입력), orgCode(관리자/시스템 부여)
const submitOrgFields = [
'compRegNo', 'corpRegNo', 'orgName', 'compRegFile', 'files',
'ceoName', 'orgAddr', 'serviceName', 'orgPhoneNumber', 'scPhoneNumber',
'orgSectors', 'orgIndustryType'
];
// 이메일 유효성 검사 함수 // 이메일 유효성 검사 함수
function isValidEmail(email) { function isValidEmail(email) {
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
@@ -177,7 +185,7 @@
} }
}); });
fields.org.forEach(fieldId => { submitOrgFields.forEach(fieldId => {
const element = document.getElementById(fieldId); const element = document.getElementById(fieldId);
if (element) { if (element) {
if (element.type === 'file') { if (element.type === 'file') {