Added debug statement.

This commit is contained in:
Dirk Jahnke 2016-10-04 20:27:33 +02:00
parent 83ea259880
commit eb5b75bcc5
1 changed files with 4 additions and 3 deletions

View File

@ -76,12 +76,13 @@ class SsoController extends ActionController
$configurationUtility = $this->objectManager->get(ConfigurationUtility::class); $configurationUtility = $this->objectManager->get(ConfigurationUtility::class);
$extensionConfiguration = $configurationUtility->getCurrentConfiguration($extKey); $extensionConfiguration = $configurationUtility->getCurrentConfiguration($extKey);
GeneralUtility::devLog('authenticateAction', $extKey, 0, array('config' => $extensionConfiguration)); GeneralUtility::devLog('authenticateAction-0', $extKey, 0, array('extKey' => $extKey));
GeneralUtility::devLog('authenticateAction-1', $extKey, 0, array('config' => $extensionConfiguration));
// Check mandatory settings. // Check mandatory settings.
if (isset($extensionConfiguration['redirect_url']) === false) { if (isset($extensionConfiguration['redirect_url']) === false) {
$errorText = '<div><b>ERROR!</b> ' $errorText = '<div><b>ERROR!</b> '
.'You should not see this message!<br />' .'You should not see this message!<br />'
.'Could not find typoscript setting plugins.tx_dj_discourse_sso.redirect_url! ' .'Could not find extension configuration for parameter redirect_url! '
.'Please configure the plugin.'; .'Please configure the plugin.';
return $errorText; return $errorText;
} else { } else {
@ -91,7 +92,7 @@ class SsoController extends ActionController
if (isset($extensionConfiguration['shared_key']) === false) { if (isset($extensionConfiguration['shared_key']) === false) {
$errorText = '<div><b>ERROR!</b> ' $errorText = '<div><b>ERROR!</b> '
.'You should not see this message!<br />' .'You should not see this message!<br />'
.'Could not find typoscript setting plugins.tx_dj_discourse_sso.shared_key! ' .'Could not find extension configuration for parameter shared_key! '
.'Please configure the plugin.'; .'Please configure the plugin.';
return $errorText; return $errorText;
} else { } else {