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