Compare commits
No commits in common. "b2f9fa68463407082cbc0ca76b70711a2c19feaa" and "2b549c7b388bdbda1e78c3d80bf0470d2b2045cd" have entirely different histories.
b2f9fa6846
...
2b549c7b38
@ -27,8 +27,8 @@ use TYPO3\CMS\Extbase\Property\PropertyMappingConfigurationBuilder;
|
|||||||
use TYPO3\CMS\Extbase\Service\EnvironmentService;
|
use TYPO3\CMS\Extbase\Service\EnvironmentService;
|
||||||
use TYPO3\CMS\Extbase\Service\ExtensionService;
|
use TYPO3\CMS\Extbase\Service\ExtensionService;
|
||||||
use TYPO3\CMS\Extbase\Utility\LocalizationUtility;
|
use TYPO3\CMS\Extbase\Utility\LocalizationUtility;
|
||||||
|
use Blueways\BwCaptcha\Validation\Validator\CaptchaValidator;
|
||||||
use TYPO3\CMS\Frontend\Authentication\FrontendUserAuthentication;
|
use TYPO3\CMS\Frontend\Authentication\FrontendUserAuthentication;
|
||||||
use TYPO3\CMS\Core\Utility\DebugUtility;
|
|
||||||
|
|
||||||
class ActionController extends BaseController
|
class ActionController extends BaseController
|
||||||
{
|
{
|
||||||
@ -838,8 +838,8 @@ class ActionController extends BaseController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/** **/
|
/** **/
|
||||||
protected function valideCaptcha($value
|
protected function valideCaptcha($captchaId, $value
|
||||||
): void {
|
) {
|
||||||
$captchaPhrases = $this->getFeUser()->getKey('ses', 'captchaPhrases');
|
$captchaPhrases = $this->getFeUser()->getKey('ses', 'captchaPhrases');
|
||||||
if (!$captchaPhrases || !is_array($captchaPhrases) || !is_string($value)) {
|
if (!$captchaPhrases || !is_array($captchaPhrases) || !is_string($value)) {
|
||||||
$this->addValidationError(
|
$this->addValidationError(
|
||||||
@ -863,7 +863,7 @@ class ActionController extends BaseController
|
|||||||
unset($captchaPhrases[$lifetime]);
|
unset($captchaPhrases[$lifetime]);
|
||||||
$this->getFeUser()->setKey('ses', 'captchaPhrases', $captchaPhrases);
|
$this->getFeUser()->setKey('ses', 'captchaPhrases', $captchaPhrases);
|
||||||
$this->getFeUser()->storeSessionData();
|
$this->getFeUser()->storeSessionData();
|
||||||
return ;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->addValidationError(
|
$this->addValidationError(
|
||||||
|
|||||||
@ -44,8 +44,7 @@ class ApiUtility
|
|||||||
$queryResult,
|
$queryResult,
|
||||||
$additionalAttributes = [],
|
$additionalAttributes = [],
|
||||||
$mapping = [],
|
$mapping = [],
|
||||||
$rootRowClass = null,
|
$rootRowClass = null
|
||||||
$options = []
|
|
||||||
) {
|
) {
|
||||||
$this->objectManager = GeneralUtility::makeInstance(
|
$this->objectManager = GeneralUtility::makeInstance(
|
||||||
ObjectManager::class
|
ObjectManager::class
|
||||||
@ -131,8 +130,7 @@ class ApiUtility
|
|||||||
$methodResult,
|
$methodResult,
|
||||||
$additionalAttributes[$attributeName],
|
$additionalAttributes[$attributeName],
|
||||||
$mapping,
|
$mapping,
|
||||||
$nextLevelClass,
|
$nextLevelClass
|
||||||
$options
|
|
||||||
);
|
);
|
||||||
if ($imageStorage) {
|
if ($imageStorage) {
|
||||||
foreach ($attributeResult as &$attributeResultRow) {
|
foreach ($attributeResult as &$attributeResultRow) {
|
||||||
@ -169,8 +167,7 @@ class ApiUtility
|
|||||||
[$methodResult],
|
[$methodResult],
|
||||||
$additionalAttributes[$attributeName],
|
$additionalAttributes[$attributeName],
|
||||||
$mapping,
|
$mapping,
|
||||||
$nextLevelClass,
|
$nextLevelClass
|
||||||
$options
|
|
||||||
)[0];
|
)[0];
|
||||||
$rowResult[$attributeName . 'Uid']
|
$rowResult[$attributeName . 'Uid']
|
||||||
= $rowResult[$attributeName]['uid'];
|
= $rowResult[$attributeName]['uid'];
|
||||||
@ -221,10 +218,6 @@ class ApiUtility
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (($options['clearIds'] ?? '' ) === true) {
|
|
||||||
unset($rowResult['uid']);
|
|
||||||
unset($rowResult['pid']);
|
|
||||||
}
|
|
||||||
$result[] = $rowResult;
|
$result[] = $rowResult;
|
||||||
}
|
}
|
||||||
return $result;
|
return $result;
|
||||||
|
|||||||
@ -37,22 +37,4 @@ class InterfaceUtility
|
|||||||
}, ARRAY_FILTER_USE_KEY);
|
}, ARRAY_FILTER_USE_KEY);
|
||||||
return array_values($constants);
|
return array_values($constants);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get all interface constants per prefix
|
|
||||||
*/
|
|
||||||
public static function parseInterfaceConstantsAssoc(
|
|
||||||
$interfaceClass, $prefix
|
|
||||||
) {
|
|
||||||
$constants = (new \ReflectionClass($interfaceClass))
|
|
||||||
->getConstants();
|
|
||||||
$constants = array_filter($constants, function($key) use ($prefix) {
|
|
||||||
if (substr($key, 0, strlen($prefix) + 1)
|
|
||||||
== strtoupper($prefix) . '_'
|
|
||||||
) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}, ARRAY_FILTER_USE_KEY);
|
|
||||||
return $constants;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -21,7 +21,7 @@ use TYPO3\CMS\Fluid\View\StandaloneView;
|
|||||||
use TYPO3\CMS\Fluid\View\TemplatePaths;
|
use TYPO3\CMS\Fluid\View\TemplatePaths;
|
||||||
use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface;
|
use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface;
|
||||||
use Symfony\Component\Mime\Address;
|
use Symfony\Component\Mime\Address;
|
||||||
use TYPO3\CMS\Core\Domain\Repository\PageRepository;
|
use TYPO3\CMS\Frontend\Page\PageRepository;
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -65,13 +65,12 @@ class TranslationUtility
|
|||||||
if (!$extensionKey) {
|
if (!$extensionKey) {
|
||||||
$extensionKey = 'site_templates';
|
$extensionKey = 'site_templates';
|
||||||
}
|
}
|
||||||
$translation = LocalizationUtility::translate(
|
return implode([
|
||||||
'LLL:EXT:'
|
'LLL:EXT:',
|
||||||
. $extensionKey
|
$extensionKey,
|
||||||
. '/Resources/Private/Language/locallang_db.xlf:'
|
'/Resources/Private/Language/locallang_db.xlf:',
|
||||||
. $key
|
$key
|
||||||
);
|
]);
|
||||||
return $translation;
|
|
||||||
} else {
|
} else {
|
||||||
if ($extensionKey) {
|
if ($extensionKey) {
|
||||||
$translation = LocalizationUtility::translate(
|
$translation = LocalizationUtility::translate(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user