Merge pull request #1689 from amitsharma322/gli-2987

Fixed: Upgraded the password hashing algorithm from MD5 to bcrypt.
This commit is contained in:
Rohit Jain
2026-05-19 13:23:14 +05:30
committed by GitHub
16 changed files with 183 additions and 29 deletions

View File

@@ -3842,9 +3842,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);
$objHash = new PasswordHashing();
$value = $objHash->passwordHash($value);
}
$object->{$key} = $value;
}
@@ -4821,4 +4822,4 @@ class AdminControllerCore extends Controller
return 0;
}
}
}
}