37 $userCount =
$GLOBALS[
'TYPO3_DB']->exec_SELECTcountRows(
41 .
' AND password NOT LIKE ' .
$GLOBALS[
'TYPO3_DB']->fullQuoteStr(
'$%',
'be_users')
42 .
' AND password NOT LIKE ' .
$GLOBALS[
'TYPO3_DB']->fullQuoteStr(
'M$%',
'be_users')
56 $currentConfiguration = self::returnExtConfDefaults();
57 if (isset(
$GLOBALS[
'TYPO3_CONF_VARS'][
'EXT'][
'extConf'][
'saltedpasswords'])) {
58 $extensionConfiguration = unserialize(
$GLOBALS[
'TYPO3_CONF_VARS'][
'EXT'][
'extConf'][
'saltedpasswords']);
60 if (isset($extensionConfiguration[$mode .
'.'])) {
61 $currentConfiguration = array_merge($currentConfiguration, $extensionConfiguration[$mode .
'.']);
64 return $currentConfiguration;
76 if (self::isUsageEnabled(
'FE')) {
78 $params[
'newPassword'] = $objInstanceSaltedPW->getHashedPassword($params[
'newPassword']);
89 'onlyAuthService' =>
'0',
91 'updatePasswd' =>
'1',
92 'saltedPWHashingMethod' =>
'TYPO3\\CMS\\Saltedpasswords\\Salt\\PhpassSalt',
105 $extConf = self::returnExtConf($mode);
106 $classNameToUse =
'TYPO3\\CMS\\Saltedpasswords\\Salt\\Md5Salt';
107 if (in_array(
$extConf[
'saltedPWHashingMethod'], array_keys(\
TYPO3\CMS\Saltedpasswords\Salt\SaltFactory::getRegisteredSaltedHashingMethods()))) {
108 $classNameToUse =
$extConf[
'saltedPWHashingMethod'];
110 return $classNameToUse;
122 $extConf = self::returnExtConf($mode);
123 $securityLevel =
$GLOBALS[
'TYPO3_CONF_VARS'][$mode][
'loginSecurityLevel'];
126 } elseif ($mode ==
'FE' &&
$extConf[
'enabled']) {
127 return \TYPO3\CMS\Core\Utility\GeneralUtility::inList(
'normal,rsa', $securityLevel);
static getNumberOfBackendUsersWithInsecurePassword()
feloginForgotPasswordHook(array &$params, \TYPO3\CMS\Felogin\Controller\FrontendLoginController $pObj)
static returnExtConfDefaults()
static getSaltingInstance($saltedHash='', $mode=TYPO3_MODE)
static returnExtConf($mode=TYPO3_MODE)
static getDefaultSaltingHashingMethod($mode=TYPO3_MODE)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
static isUsageEnabled($mode=TYPO3_MODE)