From 58d210802f5cdd809f178d77e49b0c27a4049e26 Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 4 Dec 2025 12:19:19 +0100 Subject: [PATCH] Ajout page connexion/mot de passe ouble/ reinitialisation du mot de passe backoffice --- connexion/page_de_connexion.html | 47 +++++++++++ mot_de_passe_oublie/mot_de_passe_oublie.html | 44 ++++++++++ .../reinitialisation_du_mot_de_passe.js | 19 +++++ .../reinitialisation_mot_de_passe.html | 80 +++++++++++++++++++ 4 files changed, 190 insertions(+) create mode 100644 connexion/page_de_connexion.html create mode 100644 mot_de_passe_oublie/mot_de_passe_oublie.html create mode 100644 reinitialisation_mot_de_passe/reinitialisation_du_mot_de_passe.js create mode 100644 reinitialisation_mot_de_passe/reinitialisation_mot_de_passe.html diff --git a/connexion/page_de_connexion.html b/connexion/page_de_connexion.html new file mode 100644 index 0000000..be0b9b6 --- /dev/null +++ b/connexion/page_de_connexion.html @@ -0,0 +1,47 @@ + + + + + + Connexion Admin + + + + +
+
+

Connexion Admin

+ + +
+
+ + +
+ + + + +
+
+
+ + + + \ No newline at end of file diff --git a/mot_de_passe_oublie/mot_de_passe_oublie.html b/mot_de_passe_oublie/mot_de_passe_oublie.html new file mode 100644 index 0000000..1f8107a --- /dev/null +++ b/mot_de_passe_oublie/mot_de_passe_oublie.html @@ -0,0 +1,44 @@ + + + + + + Mot de passe oublié + + + + + +
+
+

Mot de passe oublié

+ +
+
+ + +
+ + + + +
+
+
+ + + \ No newline at end of file diff --git a/reinitialisation_mot_de_passe/reinitialisation_du_mot_de_passe.js b/reinitialisation_mot_de_passe/reinitialisation_du_mot_de_passe.js new file mode 100644 index 0000000..07f58ca --- /dev/null +++ b/reinitialisation_mot_de_passe/reinitialisation_du_mot_de_passe.js @@ -0,0 +1,19 @@ + +const form= document.getElementById('resetForm'); +const password = document.getElementById('password'); +const confirmPassword = document.getElementById('confirmPassword'); +const errorMsg = document.getElementById('errorMsg'); +const successMsg = document.getElementById('successMsg'); + +form.addEventListener('submit', function(e) { + e.preventDefault(); + + if (password.value !== confirmPassword.value) { + errorMsg.style.display = 'block'; + successMsg.style.display = 'none'; + } else { + errorMsg.style.display = 'none'; + successMsg.style.display = 'block'; + console.log('SUCCES'); + } +}); \ No newline at end of file diff --git a/reinitialisation_mot_de_passe/reinitialisation_mot_de_passe.html b/reinitialisation_mot_de_passe/reinitialisation_mot_de_passe.html new file mode 100644 index 0000000..0ce7f33 --- /dev/null +++ b/reinitialisation_mot_de_passe/reinitialisation_mot_de_passe.html @@ -0,0 +1,80 @@ + + + + + + Réinitialisation du mot de passe + + + + + +
+
+

Nouveau mot de passe

+

+ Entrez votre nouveau mot de passe et confirmez-le. +

+ +
+
+ + +
+ +
+ + +
+ + + + + + +
+
+
+ + + +