fix: back to password in session, add list users in admin panel, modify, delete, logout

This commit is contained in:
Morph01
2025-02-04 07:13:34 -08:00
parent 9bac52bc37
commit 986b72a2cb
9 changed files with 224 additions and 30 deletions

View File

@@ -23,7 +23,7 @@ class AuthController
$_SESSION['login'] = true;
$_SESSION['user_pseudo'] = $_POST['user_pseudo'];
$_SESSION['is_admin'] = $result['is_admin'];
$_SESSION['ldap_token'] = base64_encode($_POST['user_pseudo'] . ':' . $_POST['user_password']);
$_SESSION['password'] = $_POST['user_password'];
header('Location: /index.php');
exit;
} else {