Commit 6060d37a authored by Marc Egger's avatar Marc Egger
Browse files

fix: cool new password hashing API is not available in T3 v9

parent 7f33ef07
Pipeline #4328 failed with stages
in 4 minutes and 38 seconds
......@@ -203,7 +203,8 @@ class Config {
// Typo3 version >=9
$configT3qfq = $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS'][EXT_KEY];
$configT3qfq[SYSTEM_DB_NAME_T3] = self::getDbName($GLOBALS['TYPO3_CONF_VARS']['DB']);
$configT3qfq[SYSTEM_PW_HASHING_CLASS] = $GLOBALS['TYPO3_CONF_VARS']['BE']['passwordHashing']['className'];
// Typo3 version >=10
$configT3qfq[SYSTEM_PW_HASHING_CLASS] = $GLOBALS['TYPO3_CONF_VARS']['BE']['passwordHashing']['className'] ?? null;
// NOTE: This does not use the official API to access Typo3 password hashing. Here is the official API: https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ApiOverview/PasswordHashing/
} elseif (isset($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][EXT_KEY])) {
......@@ -217,7 +218,8 @@ class Config {
if (isset($configT3['EXTENSIONS'][EXT_KEY])) {
// Typo3 version >=9
$configT3qfq = $configT3['EXTENSIONS'][EXT_KEY];
$configT3qfq[SYSTEM_PW_HASHING_CLASS] = $configT3['BE']['passwordHashing']['className'];
// Typo3 version >=10
$configT3qfq[SYSTEM_PW_HASHING_CLASS] = $configT3['BE']['passwordHashing']['className'] ?? null;
// NOTE: This does not use the official API to access Typo3 password hashing. Here is the official API: https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ApiOverview/PasswordHashing/
} else {
// Typo3 version <=8
......
Supports Markdown
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