Ajout du cryptage

This commit is contained in:
2024-06-19 14:12:28 +02:00
parent 2e8d69d46b
commit 7015b79a49
3 changed files with 41 additions and 23 deletions

View File

@@ -23,13 +23,14 @@ class InscriptionController extends CI_Controller {
$nom = strtoupper($this->input->post('nom'));
$pseudo = $this->input->post('pseudo');
$mdp = $this->input->post('pass');
$mdpcrypte = password_hash($mdp, PASSWORD_DEFAULT);
$email = $this->input->post('email');
$data = array(
'pseudo' => $pseudo,
'nom' => $nom,
'prenom' => $prenom,
'mdp' => $mdp,
'mdp' => $mdpcrypte,
'email' => $email
);