This commit is contained in:
Local Server
2025-12-19 20:44:46 -06:00
parent 701f799cde
commit e4b3de4a46
113 changed files with 16673 additions and 2174 deletions

View File

@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html>
<head>
<title>Logout Test</title>
<script src="/admin/js/auth.js"></script>
</head>
<body>
<h1>Simple Logout Test</h1>
<button onclick="testLogout()">Test Logout</button>
<div id="output"></div>
<script>
function log(msg) {
const output = document.getElementById('output');
output.innerHTML += msg + '<br>';
console.log(msg);
}
async function testLogout() {
log('Starting logout test...');
log('typeof window.logout: ' + typeof window.logout);
log('typeof logout: ' + typeof logout);
if (typeof window.logout === 'function') {
log('Calling window.logout(true)...');
try {
await window.logout(true);
log('Logout succeeded!');
} catch (err) {
log('Logout error: ' + err.message);
}
} else {
log('ERROR: window.logout is not a function!');
}
}
</script>
</body>
</html>