fixed centering issue with radius.
Signed-off-by: boris <boris@borishub.co.uk>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user