법인 회원 초대 방법 개선
This commit is contained in:
@@ -70,13 +70,6 @@
|
||||
<img th:src="@{/img/icon/icon_login_join.png}" alt="">
|
||||
<a th:href="@{/signup}">회원가입</a>
|
||||
</li>
|
||||
<li>
|
||||
<span>|</span>
|
||||
</li>
|
||||
<li class="icon_join">
|
||||
<img th:src="@{/img/icon/icon_login_join.png}" alt="">
|
||||
<a th:href="@{/signup/invitation-code}">초대를 받으셨나요?</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="login_list m-only">
|
||||
|
||||
@@ -299,6 +299,20 @@
|
||||
customPopups.hideAlert('#customAlert');
|
||||
window.location.href = redirectUrl;
|
||||
});
|
||||
return; // 다른 체크 중단
|
||||
}
|
||||
|
||||
// 초대 대기 확인 (로그인할 때마다 표시)
|
||||
const pendingInvitation = [[${session.pendingInvitation}]];
|
||||
if (pendingInvitation) {
|
||||
const invitationToken = /*[[${session.pendingInvitationToken}]]*/ '';
|
||||
const orgName = /*[[${session.pendingInvitationOrgName}]]*/ '';
|
||||
|
||||
customPopups.showConfirm(`<strong>${orgName}</strong>에서 초대가 도착했습니다.<br>초대를 확인하시겠습니까?`, function (selection) {
|
||||
if (selection) {
|
||||
window.location.href = '/signup/decision?invitation=' + invitationToken;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user