From e41426307171f861398c65c69d39191a66ef823d Mon Sep 17 00:00:00 2001 From: KANE LAZENI Date: Mon, 27 Jul 2026 09:09:02 +0000 Subject: [PATCH] a --- Controleur/ControleurFeuillemaladie.php | 3 ++- Controleur/ControleurPharmacien.php | 3 ++- Modele/Feuillemaladie.php | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Controleur/ControleurFeuillemaladie.php b/Controleur/ControleurFeuillemaladie.php index 7ce208a..00dfefd 100755 --- a/Controleur/ControleurFeuillemaladie.php +++ b/Controleur/ControleurFeuillemaladie.php @@ -173,8 +173,9 @@ class ControleurFeuillemaladie extends Controleur { public function envoyerotp() { + $codeTypeFacture = "CSO"; $otpValue = mt_rand(100000, 999999); - $this->feuillemaladie->envoyer_otp($otpValue); + $this->feuillemaladie->envoyer_otp($codeTypeFacture, $otpValue); $this->rediriger("Feuillemaladie"); } } \ No newline at end of file diff --git a/Controleur/ControleurPharmacien.php b/Controleur/ControleurPharmacien.php index 7868f77..593814b 100755 --- a/Controleur/ControleurPharmacien.php +++ b/Controleur/ControleurPharmacien.php @@ -254,8 +254,9 @@ class ControleurPharmacien extends Controleur { public function envoyerotp() { + $codeTypeFacture = "PHAR"; $otpValue = mt_rand(100000, 999999); - $this->feuille->envoyer_otp($otpValue); + $this->feuille->envoyer_otp($codeTypeFacture, $otpValue); $this->rediriger("Pharmacien"); } diff --git a/Modele/Feuillemaladie.php b/Modele/Feuillemaladie.php index ff0a07b..dc4fc27 100755 --- a/Modele/Feuillemaladie.php +++ b/Modele/Feuillemaladie.php @@ -591,7 +591,7 @@ class Feuillemaladie extends Modele { return $resultat->fetchAll(PDO::FETCH_ASSOC); } - public function envoyer_otp($otpValue) + public function envoyer_otp($codeTypeFacture, $otpValue) { $hash = password_hash($otpValue, PASSWORD_DEFAULT); @@ -602,7 +602,7 @@ class Feuillemaladie extends Modele { $idBeneficiaire = $_SESSION['p_idBeneficiaire_C']; $user = $_SESSION['p_login']; $numeroFeuilleMaladie = $_SESSION['p_numeroFeuilleMaladie_C']; - $codeTypeFacture = "CSO"; + // $codeTypeFacture = "CSO"; $this->executerRequete($sql, array($codeSociete, $codePrestataire, $idBeneficiaire, $numeroFeuilleMaladie, $codeTypeFacture, $otpValue, $user, $hash)); }