43 trigger_error(
'SaltedPasswordsUtility::getNumberOfBackendUsersWithInsecurePassword() is obsolete and will be removed in TYPO3 v10.0.', E_USER_DEPRECATED);
44 $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable(
'be_users');
45 $queryBuilder->getRestrictions()->removeAll();
47 $userCount = $queryBuilder
51 $queryBuilder->expr()->neq(
'password', $queryBuilder->createNamedParameter(
'', \PDO::PARAM_STR)),
52 $queryBuilder->expr()->notLike(
'password', $queryBuilder->createNamedParameter(
'$%', \PDO::PARAM_STR)),
53 $queryBuilder->expr()->notLike(
'password', $queryBuilder->createNamedParameter(
'M$%', \PDO::PARAM_STR))
70 trigger_error(
'SaltedPasswordsUtility::returnExtConf() is obsolete and will be removed in TYPO3 v10.0.', E_USER_DEPRECATED);
72 if (isset(
$GLOBALS[
'TYPO3_CONF_VARS'][
'EXTENSIONS'][
'saltedpasswords'])) {
73 $extensionConfiguration = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get(
'saltedpasswords');
75 if (isset($extensionConfiguration[$mode])) {
76 $currentConfiguration = array_merge($currentConfiguration, $extensionConfiguration[$mode]);
79 return $currentConfiguration;
90 trigger_error(
'SaltedPasswordsUtility::returnExtConfDefaults() is obsolete and will be removed in TYPO3 v10.0.', E_USER_DEPRECATED);
92 'saltedPWHashingMethod' => \TYPO3\CMS\Core\Crypto\PasswordHashing\PhpassPasswordHash::class,
106 trigger_error(
'SaltedPasswordsUtility::getDefaultSaltingHashingMethod() is obsolete and will be removed in TYPO3 v10.0.', E_USER_DEPRECATED);
108 $classNameToUse = \TYPO3\CMS\Core\Crypto\PasswordHashing\Md5PasswordHash::class;
114 $classNameToUse =
$extConf[
'saltedPWHashingMethod'];
116 return $classNameToUse;
129 'SaltedPasswordsUtility::isUsageEnabled() now always returns true and will be removed with TYPO3 v10.0.',