mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-09-25 01:53:03 +02:00
add password-reset flow: request endpoint + reset page + login link (shared OneTimeToken)
This commit is contained in:
@@ -21,6 +21,10 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
$error = 'Mot de passe incorrect.';
|
||||
}
|
||||
|
||||
// Ensure a CSRF token exists for the reset-password form on this page.
|
||||
require_once APP_ROOT . '/src/App.php';
|
||||
App::boot();
|
||||
|
||||
$pageTitle = 'Connexion';
|
||||
$isAdmin = true; $isLogin = true; $bodyClass = 'admin-body';
|
||||
require_once APP_ROOT . '/templates/head.php';
|
||||
|
||||
Reference in New Issue
Block a user