This commit is contained in:
Roly Rudy Gutierrez Pinto
2017-09-18 16:17:39 -04:00
parent d5c8707fcf
commit 381985824c

View File

@@ -2567,11 +2567,7 @@ class Bootstrap
$hashType = Bootstrap::getPasswordHashType();
}
$filter = new InputFilter();
$hashType = $filter->validateInput($hashType);
$pass = $filter->validateInput($pass);
eval("\$var = hash('" . $hashType . "', '" . $pass . "');");
$var = hash($hashType, $pass);
if ($includeHashType) {
$var = $hashType . ':' . $var;