이메일 인증 재발송 기능 제거 및 관련 코드 정리
- `emailResendPopup` 및 팝업 호출 로직 삭제 - `InquiryAdminNotifier` → `CommunityAdminNotifier`로 클래스 명칭 변경 - 제휴 신청 시 관리자 알림 로직 추가
This commit is contained in:
@@ -247,6 +247,9 @@ page:
|
||||
corp:
|
||||
name: "법인회원가입"
|
||||
path: "/signup/portalOrg"
|
||||
verification_email:
|
||||
name: "이메일 인증"
|
||||
path: "/signup/verification-email"
|
||||
agreements:
|
||||
name: 약관
|
||||
path: "#"
|
||||
@@ -322,6 +325,9 @@ page:
|
||||
mypage:
|
||||
name: "내 정보 관리"
|
||||
path: "/mypage"
|
||||
verification_email:
|
||||
name: "이메일 인증"
|
||||
path: "/mypage/verification-email"
|
||||
user_list:
|
||||
name: "이용자 관리"
|
||||
path: "/users"
|
||||
|
||||
@@ -355,11 +355,6 @@ const customPopups = {
|
||||
$('#emailValidationPopup').hide();
|
||||
});
|
||||
},
|
||||
showEmailResendPopup: function (message, loginId) {
|
||||
$('#emailResendMessage').html(customPopups._sanitizeHtml(message));
|
||||
$('#userLoginId').val(loginId);
|
||||
$('#emailResend').show();
|
||||
},
|
||||
|
||||
/**
|
||||
* 사용자 초대 팝업 표시
|
||||
|
||||
@@ -151,14 +151,7 @@
|
||||
getId(form);
|
||||
}
|
||||
if (document.loginForm.message && document.loginForm.message.value) {
|
||||
if (document.loginForm.message.value.includes("이메일 인증이 완료되지 않았습니다")) {
|
||||
console.log("이메일 재발송 팝업 트리거");
|
||||
let loginId = $('#loginId').val();
|
||||
console.log("Retrieved loginId:", loginId);
|
||||
customPopups.showEmailResendPopup(document.loginForm.message.value, loginId);
|
||||
} else {
|
||||
customPopups.showAlert(document.loginForm.message.value);
|
||||
}
|
||||
customPopups.showAlert(document.loginForm.message.value);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -174,11 +167,13 @@
|
||||
// 비밀번호 만료 체크 관련 코드 추가
|
||||
var successMsg = [[${session.success}]];
|
||||
var passwordExpired = [[${session.passwordExpired}]];
|
||||
var emailVerificationRequired = [[${session.emailVerificationRequired}]];
|
||||
var redirectUrl = [[${session.redirectUrl}]];
|
||||
|
||||
if (successMsg) {
|
||||
customPopups.showAlert(successMsg, function() {
|
||||
if (passwordExpired && redirectUrl) {
|
||||
// 비밀번호 만료·미인증(이메일 인증 필요) 시 전용 화면으로 이동
|
||||
if ((passwordExpired || emailVerificationRequired) && redirectUrl) {
|
||||
window.location.href = redirectUrl;
|
||||
}
|
||||
});
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<a href="https://www.jejubank.co.kr/hmpg/csct/secuCenr/ptctPlcy/procsPlcy/ctnt.do"
|
||||
target="_blank" rel="noopener noreferrer" class="footer-link">개인정보처리방침</a>
|
||||
</div>
|
||||
<p class="footer-copyright">Copyright © 2026 DJ Bank. All Rights Reserved.</p>
|
||||
<p class="footer-copyright">Copyright © 2026 JEJU Bank. All Rights Reserved.</p>
|
||||
</div>
|
||||
|
||||
<!-- Right Section -->
|
||||
|
||||
@@ -3,6 +3,5 @@
|
||||
<div th:replace="fragment/popup/customPopup :: #customAlert"></div>
|
||||
<div th:replace="fragment/popup/emailValidationPopup :: #emailValidationPopup"></div>
|
||||
<div th:replace="fragment/popup/customPopup2 :: #customConfirm"></div>
|
||||
<div th:replace="fragment/popup/emailResendPopup :: emailResendPopup"></div>
|
||||
<div th:replace="fragment/popup/passwordInputPopup :: passwordInputPopup"></div>
|
||||
</div>
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
<section class="content pop" th:fragment="emailResendPopup">
|
||||
<div class="popup_total" id="emailResend" style="display:none; z-index:1001;">
|
||||
<form id="emailResendForm">
|
||||
<input type="hidden" id="userLoginId" name="loginId" value="">
|
||||
<input type="hidden" name="_csrf" id="csrfToken" th:value="${_csrf.token}"/>
|
||||
<div class="pop_dim">
|
||||
<div class="popup-content">
|
||||
<div class="inner_txt">
|
||||
<div class="title">
|
||||
<h2 id="customAlertTitle2">알림</h2>
|
||||
</div>
|
||||
</div>
|
||||
<p class="pop_text" id="emailResendMessage"></p>
|
||||
<div class="pop_btnbox">
|
||||
<button type="button" class="popup_button_gray" id="emailResendButton">
|
||||
이메일 재발송
|
||||
</button>
|
||||
<button type="button" class="popup_button_blue" id="confirmButton">확인</button>
|
||||
</div>
|
||||
<a class="btn_close" style="margin-top:0" id="emailResendPopupCloseButton">
|
||||
<img th:src="@{/img/icon/icon_close.png}" alt="닫기">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
// 이메일 재발송 버튼 클릭 이벤트
|
||||
document.getElementById('emailResendButton').addEventListener('click', function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
const loginId = document.getElementById('userLoginId').value;
|
||||
const csrfToken = document.getElementById('csrfToken').value;
|
||||
|
||||
// 팝업 닫기
|
||||
$('#emailResend').hide();
|
||||
|
||||
// Ajax 요청
|
||||
$.ajax({
|
||||
url: '/resend_verification_email',
|
||||
type: 'POST',
|
||||
data: {
|
||||
loginId: loginId,
|
||||
_csrf: csrfToken
|
||||
},
|
||||
success: function (response) {
|
||||
var message = response.success || response.error || '이메일 발송에 실패했습니다.';
|
||||
customPopups.showAlert(message);
|
||||
},
|
||||
error: function (xhr, status, error) {
|
||||
console.error('요청 실패:', error);
|
||||
customPopups.showAlert('이메일 발송 중 오류가 발생했습니다.');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// 확인 버튼과 닫기 버튼 이벤트
|
||||
$('#confirmButton, #emailResendPopupCloseButton').on('click', function () {
|
||||
$('#emailResend').hide();
|
||||
});
|
||||
</script>
|
||||
</section>
|
||||
Reference in New Issue
Block a user