TEBOLO a écrit
Merci pour l'enseignement que tu donne.
moi j'utilise ceux-ci
$hash_pass = sha1($pass1);
$q = $db->prepare('INSERT INTO users(pseudo, email, password, ip, created)
VALUES(:pseudo, :email, :password, :ip, now())');
$q->execute(array(
'pseudo' => $pseudo,
'email' => $email,
'password' => $hash_pass,
'ip' => $_SERVER['REMOTE_ADDR']
));
et maintenant je voudrais le remplacer par cela dans le même fichier
$password = Auth::hashPassword($_POST['password']);
$token = sha1(uniqid(rand()));
Je ne parvient pas à changer le système de hashage du mot de passe
Merci de votre aide
Votre réponse pour ce commentaire