미인증 접근 PIN 화면 연결
This commit is contained in:
+18
-4
@@ -682,12 +682,26 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
|
||||
function renderAuthErrorPage() {
|
||||
document.body.innerHTML = `
|
||||
<main class="find-auth-error">
|
||||
<section class="find-auth-error-box">
|
||||
<h1>인증이 필요합니다</h1>
|
||||
</section>
|
||||
<main class="find-auth-page">
|
||||
<div id="findMyShortcut"></div>
|
||||
</main>
|
||||
`;
|
||||
const renderPin = () => window.CustomAuthPin?.render({
|
||||
mount: '#findMyShortcut',
|
||||
title: '비밀번호',
|
||||
placeholder: '비밀번호',
|
||||
backLabel: '채건닷컴',
|
||||
backHref: 'https://chaegeon.com/',
|
||||
onSuccess: () => location.reload(),
|
||||
});
|
||||
if (window.CustomAuthPin) {
|
||||
renderPin();
|
||||
return;
|
||||
}
|
||||
const script = document.createElement('script');
|
||||
script.src = '/custom/common/js/auth-pin.js';
|
||||
script.onload = renderPin;
|
||||
document.body.appendChild(script);
|
||||
}
|
||||
|
||||
if (location.pathname.startsWith('/findmydevice')) {
|
||||
|
||||
Reference in New Issue
Block a user