Bonjour,
qui pourrait me dire ce qui cloche dans cette requête :
qui fait appel à
Code php : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 $mdp = htmlspecialchars($_POST['change_mdp']); $mdpc = htmlspecialchars($_POST['change_mdpc']); if(!empty($mdp) AND !empty($mdpc)) { if($mdp == $mdpc) { var_dump($mdp) ; $ins_mdp = $bdd->prepare('UPDATE utilisateurs SET mot_de_passe = ? WHERE email = ?'); $ins_mdp->execute([array($mdp => password_hash($_POST['mdp'],$password_options['algo'], $password_options['options']) ,$_SESSION['recup_mail'])]);
avec les messages d'erreur :
Code php : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 # paramètres pour le hachage des mots de passe $password_options = [ 'algo' => PASSWORD_DEFAULT, 'options' => [ 'cost' => 12 ] ];
merci d'avanceNotice: Undefined index: mdp in /storage/ssd3/661/10246661/public_html/forgot.php on line 113
Notice: Array to string conversion in /storage/ssd3/661/10246661/public_html/forgot.php on line 113
Fatal error: Uncaught PDOException: SQLSTATE[HY093]: Invalid parameter number in /storage/ssd3/661/10246661/public_html/forgot.php:113 Stack trace: #0 /storage/ssd3/661/10246661/public_html/forgot.php(113): PDOStatement->execute(Array) #1 /storage/ssd3/661/10246661/public_html/recuperation.php(2): include('/storage/ssd3/6...') #2 {main} thrown in /storage/ssd3/661/10246661/public_html/forgot.php on line 113
Partager