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

@@ -3838,9 +3838,10 @@ class AdminControllerCore extends Controller
if ($key == 'passwd' && Tools::getValue('id_'.$table) && empty($value)) {
continue;
}
/* Automatically encrypt password in MD5 */
/* Automatically hash password */
if ($key == 'passwd' && !empty($value)) {
$value = Tools::encrypt($value);
$crypto = new Hashing();
$value = $crypto->hash($value);
}
$object->{$key} = $value;
}
@@ -4817,4 +4818,4 @@ class AdminControllerCore extends Controller
return 0;
}
}
}
}