From ed1bd41e66f9293e57c37227b87c9dca9ae41400 Mon Sep 17 00:00:00 2001
From: flavien
Date: Wed, 22 May 2019 13:56:52 +0200
Subject: [PATCH] bug fix
---
WEB/index.php | 27 ++------------
WEB/inscription/inscription.php | 26 --------------
WEB/ressources/user.php | 62 +++++++++++++++++++++++++++++----
3 files changed, 57 insertions(+), 58 deletions(-)
diff --git a/WEB/index.php b/WEB/index.php
index 996e61d..49a3c45 100644
--- a/WEB/index.php
+++ b/WEB/index.php
@@ -1,6 +1,7 @@
$erreur
";
- }
-}
-
-function getError($code){
- switch ($code){
- case 1:
- return "Adresse mail ou mot de passe invalide.";
- }
-}
-
-function authentification($db, $mail, $password){
- $result = pg_query_params($db, "SELECT * FROM Utilisateur WHERE mail = $1;", array($mail));
- if ($result){
- $row = pg_fetch_array($result);
- return (strcmp($row["passwd"], $password)) == 0;
- }
- return false;
-}
-
?>
@@ -75,7 +52,7 @@ function authentification($db, $mail, $password){
?>
- Si vous n'avez pas de compte cliquez ici.
+ Si vous n'avez pas de compte cliquez ici.