diff --git a/Controleur/ControleurPharmacien.php b/Controleur/ControleurPharmacien.php index 0a3cb72..7868f77 100755 --- a/Controleur/ControleurPharmacien.php +++ b/Controleur/ControleurPharmacien.php @@ -234,18 +234,18 @@ class ControleurPharmacien extends Controleur { $login = $_SESSION['p_login']; $otpValueSaisi = $this->requete->getParametre("otpValue"); - $otpArray = $this->feuillemaladie->get_otp_value("PHAR"); + $otpArray = $this->feuille->get_otp_value("PHAR"); $otpValueRequis = $otpArray['otpValue']; $idOtpFacturePrestation = $otpArray['idOtpFacturePrestation']; if ( (password_verify($otpValueSaisi, $otpValueRequis)) && (strlen($otpValueSaisi)=='6') ) { - $this->feuillemaladie->maj_otp($idOtpFacturePrestation, '1'); // validé + $this->feuille->maj_otp($idOtpFacturePrestation, '1'); // validé } else { - $this->feuillemaladie->maj_otp($idOtpFacturePrestation, '9'); // incorrect + $this->feuille->maj_otp($idOtpFacturePrestation, '9'); // incorrect } $this->rediriger("Pharmacien"); @@ -255,7 +255,7 @@ class ControleurPharmacien extends Controleur { public function envoyerotp() { $otpValue = mt_rand(100000, 999999); - $this->feuillemaladie->envoyer_otp($otpValue); + $this->feuille->envoyer_otp($otpValue); $this->rediriger("Pharmacien"); }