Update Oscars year to 2026 and add admin page
Co-authored-by: mathieumoran1 <[email protected]>
This commit is contained in:
co-authored by
mathieumoran1
parent
6108c8a40f
commit
f07547cc59
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user