Merge pull request #1689 from amitsharma322/gli-2987
Fixed: Upgraded the password hashing algorithm from MD5 to bcrypt.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user