Utilisation de hash_equals recommandé pour la comparaison des hash
This commit is contained in:
parent
c513ce6077
commit
a3870f4822
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ class utilisateurObject {
|
|||
}
|
||||
|
||||
// Si les mots de passe ne correspondent pas... on retourne un sessionObject vide
|
||||
if ($this->getPassword() !== $values->pass) {
|
||||
if (!hash_equals($values->pass, $this->getPassword())) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue