完成修改密码界面并修复了大量bug
This commit is contained in:
@ -174,7 +174,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>
|
||||
@ -189,7 +189,7 @@
|
||||
</nav>
|
||||
<div class="content">
|
||||
<div class="register-box">
|
||||
<form onsubmit="console.log('trying login'); TryRegister(); return false;">
|
||||
<form onsubmit="console.log('trying register'); TryRegister(); return false;">
|
||||
<input id="user_name" type="text" placeholder="Username" required>
|
||||
<input id="password" type="password" placeholder="Password" required>
|
||||
<input id="nickname" type="text" placeholder="Nickname" required>
|
||||
@ -238,7 +238,9 @@
|
||||
ChangeUsername(nm+" [Admin]");
|
||||
}
|
||||
}
|
||||
UpdateUserInfo();
|
||||
document.addEventListener('SessionReady', async () => {
|
||||
await UpdateUserInfo();
|
||||
});
|
||||
async function TryRegister()
|
||||
{
|
||||
console.log("TryRegister called");
|
||||
|
Reference in New Issue
Block a user