完成修改密码界面并修复了大量bug

This commit is contained in:
2023-12-16 09:16:17 +00:00
parent f1c95ea987
commit d23d0986d6
6 changed files with 307 additions and 9 deletions

View File

@ -135,7 +135,7 @@
<a href="#" onclick="(async () => { await Request('logout'); await UpdateUserInfo(); })();">Logout</a>
<a href="#" onclick="localStorage.removeItem('session_token'); localStorage.removeItem('outhentication_key'); localStorage.removeItem('operation_count'); window.close();">Close Session</a>
<a href="/register">Register</a>
<a href="#">Change Password</a>
<a href="/passwd">Change Password</a>
<a href="#">Admin Panel</a>
</div>
</div>
@ -194,7 +194,9 @@
ChangeUsername(nm+" [Admin]");
}
}
UpdateUserInfo();
document.addEventListener('SessionReady', async () => {
await UpdateUserInfo();
});
</script>
</body>
</html>