Docker Compose mit drei Services (nginx auf Port 8000), Migrationsmechanik, Update- und Backup-Skript. Anwendung: Router mit CSRF-Prüfung, Anmeldung und Ersteinrichtung, zentraler Einstellungsdialog mit Reitern, ein- und ausschaltbares Debug-Log mit Maskierung von Zugangsdaten. Layout nach Vorbild des FinanzManagers: feste Navigation links, Werkzeugleiste oben, Tab-Leiste; Farbschema hell/dunkel/System. Tests: 51 PHP-Prüfungen und 7 Playwright-Tests, alle grün.
23 lines
672 B
PHP
23 lines
672 B
PHP
<?php
|
|
|
|
use Finanzmanager\View;
|
|
|
|
/** @var string $csrfToken */
|
|
|
|
ob_start();
|
|
?>
|
|
<form method="post" action="/login" class="formular">
|
|
<input type="hidden" name="csrf_token" value="<?= View::h($csrfToken) ?>">
|
|
|
|
<label for="benutzername">Benutzername</label>
|
|
<input type="text" id="benutzername" name="benutzername" autocomplete="username" required autofocus>
|
|
|
|
<label for="passwort">Passwort</label>
|
|
<input type="password" id="passwort" name="passwort" autocomplete="current-password" required>
|
|
|
|
<button type="submit" class="knopf primaer">Anmelden</button>
|
|
</form>
|
|
<?php
|
|
$inhalt = (string)ob_get_clean();
|
|
|
|
include __DIR__ . '/../layout/schlicht.php';
|