This commit is contained in:
wangli 2025-12-30 02:00:12 +08:00
parent 690da396c2
commit 49fcf172ce

View File

@ -324,6 +324,16 @@
btn.innerText = "立即验证并进入";
}
}
// --- 自动登录逻辑 ---
document.addEventListener('DOMContentLoaded', () => {
const urlParams = new URLSearchParams(window.location.search);
const code = urlParams.get('code');
if (code) {
document.getElementById('password').value = code;
doLogin();
}
});
</script>
</body>
</html>