This commit is contained in:
KANE LAZENI 2026-02-18 10:58:24 +00:00
parent 90b9df592d
commit 581e9ed322
2 changed files with 3 additions and 4 deletions

View File

@ -24,9 +24,8 @@ class ControleurHtagcarte extends Controleur {
public function revoquercarte()
{
$login = $_SESSION['login'];
$otpValueSaisi = $this->requete->getParametre("otpValue");
$otpValueRequis = $this->utilisateur->get_otp_value($login);
$idHtagcarte = $this->requete->getParametre("idHtagcarte");
$motifRevocation = $this->requete->getParametreFormulaire("motifRevocation");
// if ( ($otpValueSaisi==$otpValueRequis) && (strlen($otpValueSaisi)=='6') )
if ( (password_verify($otpValueSaisi, $otpValueRequis)) && (strlen($otpValueSaisi)=='6') )

View File

@ -61,7 +61,7 @@ motifRevocation
<tr>
<td> <?= _("Motif Révocation");?></td>
<td >
<INPUT class="form-control" name="motifRevocation" id="motifRevocation" ></textarea>
<INPUT class="form-control" name="motifRevocation" id="motifRevocation" required AUTOCOMPLETE="OFF" autofocus >
</td>
</tr>