fix login form
Some checks failed
CI / test-build (push) Has been cancelled

This commit is contained in:
2025-12-20 03:47:13 +00:00
parent b90c725cdb
commit 3a25138d5b
11 changed files with 74 additions and 4 deletions

View File

@@ -128,6 +128,16 @@
</div>
<script>
// Check authentication on page load
(function() {
const token = localStorage.getItem('atlas_token');
if (!token) {
// No token, redirect to login
window.location.href = '/login?return=' + encodeURIComponent(window.location.pathname);
return;
}
})();
let currentTab = 'smb';
function switchTab(tab) {