Bug #19062 ยป 8903_felogin.diff
typo3/sysext/felogin/pi1/class.tx_felogin_pi1.php (working copy) | ||
---|---|---|
protected function showLogin() {
|
||
$subpart = $this->cObj->getSubpart($this->template, '###TEMPLATE_LOGIN###');
|
||
$subpartArray = $linkpartArray = array();
|
||
$gpRedirecturl = '';
|
||
|
||
$markerArray['###LEGEND###'] = $this->pi_getLL('oLabel_header_welcome', '', 1);
|
||
if($this->logintype === 'login') {
|
||
... | ... | |
// login error
|
||
$markerArray['###STATUS_HEADER###'] = $this->getDisplayText('error_header',$this->conf['errorHeader_stdWrap.']);
|
||
$markerArray['###STATUS_MESSAGE###'] = $this->getDisplayText('error_message',$this->conf['errorMessage_stdWrap.']);
|
||
$gpRedirecturl = t3lib_div::_GP('redirect_url');
|
||
}
|
||
} else {
|
||
if($this->logintype === 'logout') {
|
||
... | ... | |
$markerArray['###PASSWORD_LABEL###'] = $this->pi_getLL('password', '', 1);
|
||
$markerArray['###STORAGE_PID###'] = $this->spid;
|
||
$markerArray['###USERNAME_LABEL###'] = $this->pi_getLL('username', '', 1);
|
||
$markerArray['###REDIRECT_URL###'] = $this->redirectUrl;
|
||
$markerArray['###REDIRECT_URL###'] = $gpRedirecturl ? htmlspecialchars($gpRedirecturl) : htmlspecialchars($this->redirectUrl);
|
||
$markerArray = array_merge($markerArray, $this->getUserFieldMarkers());
|
||
if ($this->flexFormValue('showForgotPassword','sDEF') || $this->conf['showForgotPasswordLink']) {
|
||
... | ... | |
}
|
||
break;
|
||
}
|
||
} elseif ($this->logintype === 'logout' || !$this->logintype) { // after logout
|
||
} elseif ($this->logintype === 'logout') { // after logout
|
||
// Hook for general actions after after logout has been confirmed
|
||
if ($this->logintype === 'logout' && $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['felogin']['logout_confirmed']) {
|
||
... | ... | |
} else { // not logged in
|
||
// Placeholder for maybe future options
|
||
switch ($redirMethod) {
|
||
case 'getpost':
|
||
// preserve the get/post value
|
||
$redirect_url = $this->redirectUrl;
|
||
break;
|
||
}
|
||
}
|
||