Open IDP profile on MyPage

This commit is contained in:
Lectom C Han
2026-02-04 13:00:15 +09:00
parent 5a8320bb78
commit d920cd5249
7 changed files with 40 additions and 0 deletions

View File

@@ -20,7 +20,27 @@ function hide(id) {
마이페이지 1단계 (비밀번호 인증)
- 헤더에서 호출
========================= */
function getIdpProfileUrl() {
const raw = (window.IDP_SERVICE_URL || '').trim()
if (!raw) {
return ''
}
return raw.replace(/\/+$/, '') + '/profile'
}
function openIdpProfile() {
const url = getIdpProfileUrl()
if (!url) {
return false
}
window.open(url, 'idp_profile', 'noopener,noreferrer')
return true
}
window.mypage01 = function () {
if (openIdpProfile()) {
return
}
if (!window.IS_LOGIN) {
if (typeof window.login === 'function') {
window.login()