This commit is contained in:
@@ -73,6 +73,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;
|
||||
}
|
||||
})();
|
||||
|
||||
function getAuthHeaders() {
|
||||
const token = localStorage.getItem('atlas_token');
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user