utiliser password_verify pour verifier mdp

correction_routeur^2
Gwenael PLANCHON 1 year ago
parent bf9b41fd17
commit a42dbad2a4

@ -20,8 +20,8 @@ class UserGateway
$result = $this->con->getOneResult();
if (!empty($result) && password_hash($motDePasse, PASSWORD_DEFAULT) == $result['motDePasse']) {
return true;
if (!empty($result)) {
return password_verify($motDePasse,$result['motdepasse']);
}
return false;
}

Loading…
Cancel
Save