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

@@ -263,7 +263,8 @@ class AdminLoginControllerCore extends AdminController
if (!count($this->errors)) {
$pwd = Tools::passwdGen(10, 'RANDOM');
$employee->passwd = Tools::encrypt($pwd);
$crypto = new Hashing();
$employee->passwd = $crypto->hash($pwd);
$employee->last_passwd_gen = date('Y-m-d H:i:s', time());
$params = array(