Fixed: Upgrade the password hashing from MD5 to Bcrypt
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user