Update Oscars year to 2026 and add admin page

Co-authored-by: mathieumoran1 <[email protected]>
This commit is contained in:
Cursor Agent
2025-12-20 21:20:05 +00:00
co-authored by mathieumoran1
parent 6108c8a40f
commit f07547cc59
11 changed files with 207 additions and 13 deletions
+4
View File
@@ -6,6 +6,10 @@ window.onload = async function () {
const decoded = JSON.parse(atob(token.split('.')[1])); // Manually decoding JWT
const userName = decoded.name;
document.getElementById('user-name').textContent = userName;
if (decoded.admin) {
const adminLink = document.getElementById('admin-control-link');
if (adminLink) adminLink.classList.remove('d-none');
}
// Verify JWT expiration
const currentTime = Math.floor(Date.now() / 1000);