fix cf access login

This commit is contained in:
Purple
2026-01-18 02:27:04 +00:00
parent e0d3973184
commit 4ba3d49ce3
3 changed files with 5 additions and 4 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@@ -6,7 +6,7 @@ services:
image: alpine:latest
container_name: geofeed-git-sync
environment:
GIT_REPO: ${GIT_REPO:-https://git.prpl.tools/PurpleComputing/geofeed-manager.git}
GIT_REPO: ${GIT_REPO:-https://git.prpl.tools/PurpleComputing/ip-manager.git}
GIT_BRANCH: ${GIT_BRANCH:-main}
volumes:
- webapp_code:/app
@@ -73,7 +73,9 @@ services:
# IP Registry API for IP enrichment
IPREGISTRY_API_KEY: ${IPREGISTRY_API_KEY:-}
volumes:
- webapp_code:/app:ro
# Use local webapp folder for development (comment out for production)
- ./webapp:/app:ro
# - webapp_code:/app:ro
depends_on:
mariadb:
condition: service_healthy

View File

@@ -6,7 +6,6 @@ let deleteEntryId = null;
let selectedFile = null;
let clientLogos = {};
let auditPage = 1;
const csrfToken = '<?php echo generateCSRFToken(); ?>';
// Initialize
document.addEventListener('DOMContentLoaded', () => {
@@ -120,7 +119,7 @@ async function api(action, params = {}, method = 'GET', body = null) {
const options = { method };
if (body) {
options.headers = { 'Content-Type': 'application/json' };
options.body = JSON.stringify({ ...body, csrf_token: csrfToken });
options.body = JSON.stringify({ ...body, csrf_token: (typeof CSRF_TOKEN !== 'undefined' ? CSRF_TOKEN : '') });
}
const response = await fetch(url, options);