fixed centering issue with radius.

Signed-off-by: boris <boris@borishub.co.uk>
This commit is contained in:
boris
2025-04-22 01:17:48 +01:00
parent 183cca3fd3
commit d027e01ccc
12 changed files with 85 additions and 215 deletions

View File

@@ -83,12 +83,12 @@ require('template/header.phtml')
// Validate authentication with server first
let isAdmin = false;
if (simpleAuth.isAuthenticated()) {
if (auth.isAuthenticated()) {
try {
// This will validate the token with the server and handle refresh if needed
const isValid = await simpleAuth.validateOnLoad();
const isValid = await auth.validateOnLoad();
if (isValid) {
isAdmin = simpleAuth.isAdmin();
isAdmin = auth.isAdmin();
}
} catch (error) {
console.error('Error validating authentication:', error);