Open IDP profile on MyPage
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user