diff --git a/blog/categories/articles/modifier_article.html b/blog/categories/articles/modifier_article.html
index 5709a8f..f6ef016 100644
--- a/blog/categories/articles/modifier_article.html
+++ b/blog/categories/articles/modifier_article.html
@@ -28,7 +28,7 @@
- Le titre de l'article est obligatoire.
+ g Le titre de l'article est obligatoire.
diff --git a/connexion/reinitialisation_mot_de_passe/reinitialisation_du_mot_de_passe.js b/connexion/reinitialisation_mot_de_passe/reinitialisation_du_mot_de_passe.js
index d1e5ada..66dfe76 100644
--- a/connexion/reinitialisation_mot_de_passe/reinitialisation_du_mot_de_passe.js
+++ b/connexion/reinitialisation_mot_de_passe/reinitialisation_du_mot_de_passe.js
@@ -3,9 +3,29 @@ const password = document.getElementById('password');
const confirmPassword = document.getElementById('confirmPassword');
const errorMsg = document.getElementById('errorMsg');
const successMsg = document.getElementById('successMsg');
+const showPasswordCheckbox = document.getElementById('showPassword');
const minLength = 8;
+const passwordIndicator = document.getElementById('passwordIndicator');
+
+password.addEventListener('input', function() {
+ const pass = password.value.trim();
+
+ if (pass.length === 0) {
+ passwordIndicator.textContent = '';
+ return;
+ }
+ if (pass.length < minLength) {
+ passwordIndicator.textContent = ` (au moins ${minLength} caractères requis)`;
+ passwordIndicator.style.color = 'red';
+ } else {
+ passwordIndicator.textContent = 'Fort';
+ passwordIndicator.style.color = 'green';
+
+ }
+});
+
form.addEventListener('submit', function(e) {
e.preventDefault();
@@ -30,8 +50,17 @@ form.addEventListener('submit', function(e) {
return;
}
- //Succès
- successMsg.style.display = 'block';
- successMsg.textContent = 'Mot de passe réinitialisé avec succès !';
+
});
+
+showPasswordCheckbox.addEventListener('change', function() {
+ if (this.checked) {
+ password.type = 'text';
+ confirmPassword.type = 'text';
+
+ } else {
+ password.type = 'password';
+ confirmPassword.type = 'password';
+ }
+});
\ No newline at end of file
diff --git a/connexion/reinitialisation_mot_de_passe/reinitialisation_mot_de_passe.html b/connexion/reinitialisation_mot_de_passe/reinitialisation_mot_de_passe.html
index b4f296c..1cc7cf7 100644
--- a/connexion/reinitialisation_mot_de_passe/reinitialisation_mot_de_passe.html
+++ b/connexion/reinitialisation_mot_de_passe/reinitialisation_mot_de_passe.html
@@ -29,9 +29,17 @@
Nouveau mot de passe
Pour réinitialiser votre mot de passe, veuillez saisir un nouveau mot
- de passe ainsi qu'une confirmation. Le mot de passe doit contenir au
- minimum 8 caractères.
+ de passe ainsi qu'une confirmation.
+
+
+
+ Les mots de passe ne correspondent pas.
+