removed TODOs after successful test

This commit was merged in pull request #9.
This commit is contained in:
luptmoor
2026-04-23 10:10:53 +02:00
parent 0b02b435ef
commit 025cd975f0
2 changed files with 2 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ if ($page === 'logout') {
// ----------------------------------------------------------------- // -----------------------------------------------------------------
$pdo = get_db(); $pdo = get_db();
$stmt = $pdo->prepare("SELECT * FROM municipalities WHERE slug = :slug"); $stmt = $pdo->prepare("SELECT * FROM municipalities WHERE slug = :slug");
$stmt->execute([':slug' => getenv('MUNICIPALITY_SLUG')]); # TODO: test slug as env var $stmt->execute([':slug' => getenv('MUNICIPALITY_SLUG')]);
$municipality = $stmt->fetch(); $municipality = $stmt->fetch();
// Shows Login Page if not authenticated // Shows Login Page if not authenticated

View File

@@ -25,7 +25,7 @@ require_once __DIR__ . '/api/db.php';
// ----------------------------------------------------------------- // -----------------------------------------------------------------
$pdo = get_db(); $pdo = get_db();
$stmt = $pdo->prepare("SELECT * FROM municipalities WHERE slug = :slug"); $stmt = $pdo->prepare("SELECT * FROM municipalities WHERE slug = :slug");
$stmt->execute([':slug' => getenv('MUNICIPALITY_SLUG')]); # TODO: test slug as env var $stmt->execute([':slug' => getenv('MUNICIPALITY_SLUG')]);
$municipality = $stmt->fetch(); $municipality = $stmt->fetch();
if (!$municipality) { if (!$municipality) {