- SaaS-Auth-Helper und PDO-Datenbankzugriff einführen - Registrierung, Login, Logout und Kontoansicht ergänzen - Auth-Migration, Flow-Check und Smoke-Abdeckung aktualisieren
28 lines
558 B
PHP
28 lines
558 B
PHP
<?php
|
|
|
|
require_once __DIR__ . '/functions.php';
|
|
|
|
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|
app_require_csrf();
|
|
saas_logout();
|
|
header('Location: login.php?logged_out=1');
|
|
exit;
|
|
}
|
|
|
|
include 'header.php';
|
|
include 'headerline.php';
|
|
include 'nav.php';
|
|
?>
|
|
|
|
<section id="banner">
|
|
<div class="content">
|
|
<h2>Abmelden</h2>
|
|
<form method="post" action="logout.php">
|
|
<?php echo app_csrf_field(); ?>
|
|
<button type="submit">Abmelden</button>
|
|
</form>
|
|
</div>
|
|
</section>
|
|
|
|
<?php include 'footer.php'; ?>
|