seed_pass_verify() checks strictly hash amd md5 of password

This commit is contained in:
Uwe Steinmann 2024-01-10 20:36:53 +01:00
parent 56d1173ecd
commit 53bca0e294

View File

@ -963,7 +963,7 @@ function seed_pass_hash($password) { /* {{{ */
* @return string hashed password * @return string hashed password
*/ */
function seed_pass_verify($password, $hash) { /* {{{ */ function seed_pass_verify($password, $hash) { /* {{{ */
return $hash == md5($password); return $hash === md5($password);
} /* }}} */ } /* }}} */
/** /**