Commit b6efc9c8 authored by Jens Jacobsen's avatar Jens Jacobsen

Fix usage of old class name tx_saltedpasswords_salts_factory

parent 882e6302
Pipeline #1711 passed with stages
in 2 minutes and 58 seconds
......@@ -146,7 +146,7 @@ class tx_ter_helper
);
if ($row = $TYPO3_DB->sql_fetch_assoc($res)) {
$objPHPass = tx_saltedpasswords_salts_factory::getSaltingInstance($row['password']);
$objPHPass = \TYPO3\CMS\Saltedpasswords\Salt\SaltFactory::getSaltingInstance($row['password']);
// we do not consider 'C' or 'M' prefixed salted password hashes
// as password strings on typo3.org are not updated ones
if ($row['password'] !== $accountData->password && !$objPHPass->checkPassword(
......@@ -186,7 +186,7 @@ class tx_ter_helper
);
if ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
$objPHPass = tx_saltedpasswords_salts_factory::getSaltingInstance($row['password']);
$objPHPass = \TYPO3\CMS\Saltedpasswords\Salt\SaltFactory::getSaltingInstance($row['password']);
// we do not consider 'C' or 'M' prefixed salted password hashes
// as password strings on typo3.org are not updated ones
if ($row['password'] === $accountData->password || $objPHPass->checkPassword(
......@@ -510,4 +510,4 @@ class tx_ter_helper
$GLOBALS['LANG'] = GeneralUtility::makeInstance('language');
$GLOBALS['LANG']->init($lang);
}
}
\ No newline at end of file
}
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