From 9a3cbdcb81c04254047b9a56b2edc101e1ea1f07 Mon Sep 17 00:00:00 2001 From: Poty Thomas Date: Fri, 5 Jun 2026 11:52:02 +0200 Subject: [PATCH] =?UTF-8?q?=20ajout=20et=20modifications=20de=20plusieurs?= =?UTF-8?q?=20pages=20li=C3=A9es=20=C3=A0=20l'authentification?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/auth_ctrl2.php | 63 ++++++++++++++++++++++++++++++++ controllers/auth_utilities.php | 28 ++++++++++----- models/user_crud.php | 16 +++++++++ views/auth_ctrl.php | 65 ++++++++++++++++++++++++++++++++++ views/auth_ctrl.php~ | 65 ++++++++++++++++++++++++++++++++++ views/login_views.php | 5 +-- 6 files changed, 232 insertions(+), 10 deletions(-) create mode 100644 controllers/auth_ctrl2.php mode change 100644 => 100755 controllers/auth_utilities.php create mode 100644 models/user_crud.php create mode 100755 views/auth_ctrl.php create mode 100755 views/auth_ctrl.php~ diff --git a/controllers/auth_ctrl2.php b/controllers/auth_ctrl2.php new file mode 100644 index 0000000..04e05e9 --- /dev/null +++ b/controllers/auth_ctrl2.php @@ -0,0 +1,63 @@ +prepare($req); + $prep->bindValue(':id', $id); + $prep->execute(); + $auth = $prep->fetch(PDO::FETCH_ASSOC); + $prep->closeCursor(); + return $auth; + } + \ No newline at end of file diff --git a/views/auth_ctrl.php b/views/auth_ctrl.php new file mode 100755 index 0000000..05a2948 --- /dev/null +++ b/views/auth_ctrl.php @@ -0,0 +1,65 @@ +Page d\'authentification'; echo '
'; echo '

Login

'; - echo '

Mot de passe

'; + echo '

Mot de passe

'; echo '

'; #require('footer.php');