2 namespace TYPO3\CMS\Saltedpasswords\Utility;
36 $userCount =
$GLOBALS[
'TYPO3_DB']->exec_SELECTcountRows(
40 .
' AND password NOT LIKE ' .
$GLOBALS[
'TYPO3_DB']->fullQuoteStr(
'$%',
'be_users')
41 .
' AND password NOT LIKE ' .
$GLOBALS[
'TYPO3_DB']->fullQuoteStr(
'M$%',
'be_users')
53 $currentConfiguration = self::returnExtConfDefaults();
54 if (isset(
$GLOBALS[
'TYPO3_CONF_VARS'][
'EXT'][
'extConf'][
'saltedpasswords'])) {
55 $extensionConfiguration = unserialize(
$GLOBALS[
'TYPO3_CONF_VARS'][
'EXT'][
'extConf'][
'saltedpasswords']);
57 if (isset($extensionConfiguration[$mode .
'.'])) {
58 $currentConfiguration = array_merge($currentConfiguration, $extensionConfiguration[$mode .
'.']);
61 return $currentConfiguration;
74 if (self::isUsageEnabled(
'FE')) {
75 $objInstanceSaltedPW = \TYPO3\CMS\Saltedpasswords\Salt\SaltFactory::getSaltingInstance();
76 $params[
'newPassword'] = $objInstanceSaltedPW->getHashedPassword($params[
'newPassword']);
88 'onlyAuthService' =>
'0',
90 'updatePasswd' =>
'1',
91 'saltedPWHashingMethod' => \TYPO3\CMS\Saltedpasswords\Salt\PhpassSalt::class,
105 $extConf = self::returnExtConf($mode);
106 $classNameToUse = \TYPO3\CMS\Saltedpasswords\Salt\Md5Salt::class;
107 if (in_array(
$extConf[
'saltedPWHashingMethod'], array_keys(\TYPO3\CMS\Saltedpasswords\Salt\SaltFactory::getRegisteredSaltedHashingMethods()))) {
108 $classNameToUse =
$extConf[
'saltedPWHashingMethod'];
110 return $classNameToUse;
123 $extConf = self::returnExtConf($mode);
124 $securityLevel = trim(
$GLOBALS[
'TYPO3_CONF_VARS'][$mode][
'loginSecurityLevel']) ?:
'normal';
125 if ($mode ===
'BE') {