This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['backend']['loginProviders'][1433416748] = array( | |
'provider' => \TYPO3\CMS\Openid\LoginProvider\OpenIdLoginProvider::class, | |
'sorting' => 25, | |
'icon-class' => 'fa-openid', | |
'label' => 'LLL:EXT:openid/Resources/Private/Language/locallang.xlf:login.link' | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class OpenIdLoginProvider implements LoginProviderInterface { | |
/** | |
* @param StandaloneView $view | |
* @param PageRenderer $pageRenderer | |
* @param LoginController $loginController | |
*/ | |
public function render(StandaloneView $view, PageRenderer $pageRenderer, LoginController $loginController) { | |
$view->setTemplatePathAndFilename(GeneralUtility::getFileAbsFileName('EXT:openid/Resources/Private/Templates/OpenidLogin.html')); | |
$view->assign('presetOpenId', GeneralUtility::_GP('openid_url')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<f:layout name="Login" /> | |
<f:section name="loginFormFields"> | |
<div class="form-group t3js-login-openid-section" id="t3-login-openid_url-section"> | |
<div class="input-group"> | |
<input type="text" id="openid_url" name="openid_url" value="{presetOpenId}" autofocus="autofocus" placeholder="{f:translate(key: 'openId', extensionName: 'openid')}" class="form-control input-login t3js-clearable t3js-login-openid-field" /> | |
<div class="input-group-addon"> | |
<span class="fa fa-openid"></span> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$extConf = unserialize($TYPO3_CONF_VARS['EXT']['extConf'][$_EXTKEY]); | |
if (isset($extConf['yubikeyEnableBE']) && (bool)$extConf['yubikeyEnableBE']) { | |
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['backend']['loginProviders'][1433416747]['provider'] = DERHANSEN\SfYubikey\LoginProvider\YubikeyLoginProvider::class; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class YubikeyLoginProvider extends UsernamePasswordLoginProvider { | |
/** | |
* Renders the login fields | |
* | |
* @param StandaloneView $view | |
* @param PageRenderer $pageRenderer | |
* @param LoginController $loginController | |
*/ | |
public function render(StandaloneView $view, PageRenderer $pageRenderer, LoginController $loginController) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: php | |
php: | |
- 5.4 | |
- 5.5 | |
- 5.6 | |
env: | |
matrix: | |
- DB=mysql TYPO3_BRANCH=TYPO3_6-2 COVERAGE=0 | |
- DB=mysql TYPO3_BRANCH=master COVERAGE=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Renders a Fluid StandaloneView respecting the given language | |
* | |
* @param string $language The language (e.g. de, dk or se) | |
* @return string | |
* @throws \TYPO3\CMS\Extbase\Configuration\Exception\InvalidConfigurationTypeException | |
*/ | |
public function renderStandaloneView($language = '') { | |
if ($language !== '') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{namespace s=Derhansen\Standaloneview\ViewHelpers} | |
<strong><s:translate key="title" /></strong> | |
<p><s:translate key="description" /></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.tx_standaloneview._LOCAL_LANG.de { | |
description = Dies ist der deutsche Titel aus TypoScript überschrieben | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function listAction() | |
{ | |
/** @var \TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings $querySettings */ | |
$querySettings = $this->objectManager->get(\TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings::class); | |
$querySettings->setRespectStoragePage(false); | |
$querySettings->setIgnoreEnableFields(true); | |
$querySettings->setIncludeDeleted(true); | |
$this->frontendUserRepository->setDefaultQuerySettings($querySettings); | |
$users = $this->frontendUserRepository->findAll(); |