Replaced one-pager with multiple pages and fixed security bugs

This commit is contained in:
Jan Meinl
2026-05-16 21:10:55 +02:00
parent 802906f9d4
commit 68034dea7d
25 changed files with 2311 additions and 1217 deletions
+11 -2
View File
@@ -7,10 +7,19 @@
<link rel="stylesheet" href="/style.css">
</head>
<body>
<div id="app"></div>
<div class="loading-wrap"><div class="muted"></div></div>
<script src="/config.js"></script>
<script src="/i18n.js"></script>
<script src="/api.js"></script>
<script src="/app.js"></script>
<script src="/common.js"></script>
<script>
(async () => {
let user = null;
try { user = await API.me(); } catch (e) {}
if (!user) navigate("login");
else if (user.must_change_password) navigate("forcePassword");
else navigate("competitions");
})();
</script>
</body>
</html>