미인증 접근 PIN 화면 연결

This commit is contained in:
seo
2026-07-02 13:13:40 +09:00
parent bd167f4d14
commit 7b1abb009a
2 changed files with 19 additions and 5 deletions
+18 -4
View File
@@ -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')) {