From 24db56327fed9097898d28c291f7d01a5d9802b1 Mon Sep 17 00:00:00 2001 From: "sacha.serny" Date: Mon, 15 Nov 2021 09:51:48 +0100 Subject: [PATCH] Lycee_fin_cour_15/11 --- sign_in.php | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sign_up.html | 69 ---------------------------------------------- 2 files changed, 78 insertions(+), 69 deletions(-) create mode 100644 sign_in.php delete mode 100644 sign_up.html diff --git a/sign_in.php b/sign_in.php new file mode 100644 index 0000000..a850a44 --- /dev/null +++ b/sign_in.php @@ -0,0 +1,78 @@ + +prepare("SELECT * FROM membres WHERE email = :mail"); + $look->bindParam(":mail", $mail); + $look->execute(); + $userexist = -1; + $userexist = $look->rowCount(); + if ($userexist == 0) { + $data = $look->fetch(); + var_dump($password,$data['password']); + if (password_verify($password,$data['password'])) { + $erreur = "Vous avez été correctement connecté."; + } else { + $erreur = "Les mots de passe ne correspondent pas."; + } + } else { + $erreur = "Le mail utilisé est inconnu."; + } +} +} +?> + + + + + Conenxion + + + + + + +
+

Connecte-toi pour accéder à plus de foncitonnalités

+
+
+
+ +
+
+ +
+
+
+ + +
+
+ +
+
+
+ + + \ No newline at end of file diff --git a/sign_up.html b/sign_up.html deleted file mode 100644 index dd68598..0000000 --- a/sign_up.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - Titre - - - - - - - - -
-

PopOp

- -
- Se connecter - S'inscrire -
-
-
-
- En attente de l'ajout d'un systeme PHP. -
Cette page est moche et mal faite. -
-
-

Inscription

- -
-
- -
- -
- -
-
- -
-
- -
-
- -
-
-
- - - - \ No newline at end of file