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