Fixed: Upgrade the password hashing from MD5 to Bcrypt

This commit is contained in:
Amit sharma
2026-03-13 15:14:53 +05:30
parent a27e55c049
commit 622e8d9c26
16 changed files with 204 additions and 34 deletions

View File

@@ -1188,7 +1188,8 @@ abstract class ObjectModelCore implements Core_Foundation_Database_EntityInterfa
}
if ($field == 'passwd') {
if ($value = Tools::getValue($field)) {
$this->{$field} = Tools::encrypt($value);
$crypto = new Hashing();
$this->{$field} = $crypto->hash($value);
}
} else {
$this->{$field} = $value;