增加自动登陆功能,http://localhost:8080/login?code=xxx
This commit is contained in:
parent
690da396c2
commit
49fcf172ce
@ -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>
|
||||
Loading…
Reference in New Issue
Block a user