fix: Füge Login-Pflicht für Startseite hinzu
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
parent
9baaeafd1c
commit
a1365026d5
1 changed files with 1 additions and 0 deletions
|
|
@ -124,6 +124,7 @@ if ($page === 'login') {
|
|||
echo "<p style='color:red;'>Fehler: " . htmlspecialchars($e->getMessage()) . "</p>";
|
||||
}
|
||||
} elseif ($page === 'home') {
|
||||
Auth::requireLogin();
|
||||
try {
|
||||
$db = Database::getConnection();
|
||||
$userCount = $db->query("SELECT COUNT(*) FROM users")->fetchColumn();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue