Commit 054b6282 authored by gsalin's avatar gsalin
Browse files

correct hash_password method

parent dff01ecc
......@@ -298,16 +298,9 @@ $template_mail.='<p>Yours sincerely</p>
* @return hashed password
*/
static function hash_password($password){
$hashInstance = GeneralUtility::makeInstance(PasswordHashFactory::class)->getDefaultHashInstance('FE');
$hashInstance = TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(PasswordHashFactory::class)->getDefaultHashInstance('FE');
$hashedPassword = $hashInstance->getHashedPassword($password);
// if (\TYPO3\CMS\Crypto\PasswordHashing\SaltedPasswordsUtility::isUsageEnabled('FE')) {
// $objSalt = \TYPO3\CMS\Core\Crypto\PasswordHashing\PasswordHashFactory::getSaltingInstance(NULL);
// if (is_object($objSalt)) {
// $saltedPassword = $objSalt->getHashedPassword($password);
// }
// }
return $saltedPassword;
return $hashedPassword;
}
static function get_ssh_connection($user_login, $user_pwd){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment