a
This commit is contained in:
parent
7e8209b6a7
commit
c55a9f937a
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user