prestation/Controleur/ControleurAjaxenvoimaildivers.php
2026-04-29 09:38:14 +00:00

28 lines
695 B
PHP
Executable File

<?php
require_once 'Framework/Controleur.php';
require_once 'Modele/Finger.php';
class ControleurAjaxenvoimaildivers extends Controleur {
private $finger;
public function __construct() {
$this->finger = new Finger();
}
public function index()
{
$this->genererVueAjax();
}
public function verifiertentativeidentitification()
{
$user_id = $this->requete->getParametreFormulaire("user_id");
$nbTentative = $this->finger->verifier_tentative_identification($user_id);
$_SESSION['p_nbTentative'] = $nbTentative;
// $this->executerAction("index");
$this->genererVueAjax(array('nbTentative' => $nbTentative));
}
}