This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user