userpage: show and allow modification of contact methods

This commit is contained in:
Harvey Tindall
2023-06-17 17:27:44 +01:00
parent 3e034c85d6
commit a22f032924
43 changed files with 422 additions and 149 deletions
+2 -8
View File
@@ -177,12 +177,6 @@ login.onLogin = () => {
}
}
login.login("", "");
login.bindLogout(document.getElementById("logout-button"));
(document.getElementById('logout-button') as HTMLButtonElement).onclick = () => _post("/logout", null, (req: XMLHttpRequest): boolean => {
if (req.readyState == 4 && req.status == 200) {
window.token = "";
location.reload();
return false;
}
});
login.login("", "");