diff --git a/controllers/auth_ctrl2.php b/controllers/auth_ctrl2.php index 5ea9b0b..875b914 100644 --- a/controllers/auth_ctrl2.php +++ b/controllers/auth_ctrl2.php @@ -1,11 +1,9 @@ prepare($req); - $prep->bindValue(':login', $login); + + $prep = $connex->prepare($req); + $prep->bindValue(':id', $id); $prep->execute(); $auth = $prep->fetch(PDO::FETCH_ASSOC); $prep->closeCursor(); - return $auth ?: null; -} + return $auth; + } + \ No newline at end of file diff --git a/views/login_views.php b/views/login_views.php index 9e676cc..c55206c 100644 --- a/views/login_views.php +++ b/views/login_views.php @@ -1,15 +1,17 @@ + Page d\'authentification'; - echo '
Merci de vous authentifier pour accéder à cette fonctionnalité.
'; echo ''; + echo 'Login
'; + echo 'Mot de passe
'; + echo ''; - require('views/footer.php'); -} + #require('footer.php'); +} \ No newline at end of file