‪TYPO3CMS  10.4
TYPO3\CMS\Felogin\Controller\FrontendLoginController Class Reference
Inheritance diagram for TYPO3\CMS\Felogin\Controller\FrontendLoginController:
TYPO3\CMS\Frontend\Plugin\AbstractPlugin

Public Member Functions

string main ($content, $conf)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Frontend\Plugin\AbstractPlugin
 __construct ($_=null, TypoScriptFrontendController $frontendController=null)
 
 pi_setPiVarDefaults ()
 
string pi_getPageLink ($id, $target='', $urlParameters=[])
 
string pi_linkToPage ($str, $id, $target='', $urlParameters=[])
 
string pi_linkTP ($str, $urlParameters=[], $cache=false, $altPageId=0)
 
string pi_linkTP_keepPIvars ($str, $overrulePIvars=[], $cache=false, $clearAnyway=false, $altPageId=0)
 
string pi_linkTP_keepPIvars_url ($overrulePIvars=[], $cache=false, $clearAnyway=false, $altPageId=0)
 
string pi_list_linkSingle ($str, $uid, $cache=false, $mergeArr=[], $urlOnly=false, $altPageId=0)
 
string pi_openAtagHrefInJSwindow ($str, $winName='', $winParams='width=670, height=500, status=0, menubar=0, scrollbars=1, resizable=1')
 
string pi_list_browseresults ($showResultCount=1, $tableParams='', $wrapArr=[], $pointerName='pointer', $hscText=true, $forceOutput=false)
 
string pi_list_modeSelector ($items=[], $tableParams='')
 
string pi_list_makelist ($statement, $tableParams='')
 
string pi_list_row ($c)
 
string pi_list_header ()
 
string pi_getClassName ($class)
 
string pi_classParam ($class, $addClasses='')
 
string pi_wrapInBaseClass ($str)
 
string pi_getEditPanel ($row=[], $tablename='', $label='', $conf=[])
 
string pi_getEditIcon ($content, $fields, $title='', $row=[], $tablename='', $oConf=[])
 
string pi_getLL ($key, $alternativeLabel='')
 
 pi_loadLL ($languageFilePath='')
 
Statement pi_exec_query ($table, $count=false, $addWhere='', $mm_cat='', $groupBy='', $orderBy='', $query='')
 
array pi_getRecord ($table, $uid, $checkPage=false)
 
string pi_getPidList ($pid_list, $recursive=0)
 
string pi_prependFieldsWithTable ($table, $fieldList)
 
array pi_getCategoryTableContents ($table, $pid, $whereClause='', $groupBy='', $orderBy='', $limit='')
 
bool null pi_isOnlyFields ($fList, $lowerThan=-1)
 
bool null pi_autoCache ($inArray)
 
string pi_RTEcssText ($str)
 
 pi_initPIflexForm ($field='pi_flexform')
 
string null pi_getFFvalue ($T3FlexForm_array, $fieldName, $sheet='sDEF', $lang='lDEF', $value='vDEF')
 
mixed pi_getFFvalueFromSheetArray ($sheetArray, $fieldNameArr, $value)
 

Public Attributes

string $prefixId = 'tx_felogin_pi1'
 
string $extKey = 'felogin'
 
string $referer
 
- ‪Public Attributes inherited from ‪TYPO3\CMS\Frontend\Plugin\AbstractPlugin
ContentObjectRenderer null $cObj
 
string $prefixId
 
string $scriptRelPath
 
string $extKey
 
array $piVars
 
array $internal = array( 'res_count' => 0, 'results_at_a_time' => 20, 'maxPages' => 10, 'currentRow' => [], 'currentTable' => '' )
 
array $LOCAL_LANG = array( )
 
bool $LOCAL_LANG_loaded = false
 
string $LLkey = 'default'
 
string $altLLkey = ''
 
string $LLtestPrefix = ''
 
string $LLtestPrefixAlt = ''
 
string $pi_isOnlyFields = 'mode,pointer'
 
int $pi_alwaysPrev = 0
 
int $pi_lowerThan = 5
 
string $pi_moreParams = ''
 
string $pi_listFields = '*'
 
array $pi_autoCacheFields = array( )
 
bool $pi_autoCacheEn = false
 
array $conf = array( )
 
ContentObjectRenderer $pi_EPtemp_cObj
 
int $pi_tmpPageId = 0
 

Protected Member Functions

string showForgot ()
 
string changePassword ()
 
string generateAndSendHash ($user)
 
string showLogout ()
 
string showLogin ()
 
array processRedirect ()
 
 mergeflexFormValuesIntoConf ()
 
string flexFormValue ($var, $sheet)
 
string getPageLink ($label, $piVars, $returnUrl=false)
 
array getPreserveGetVars ()
 
string generatePassword ($len)
 
string getDisplayText ($label, $stdWrapArray=[])
 
array getUserFieldMarkers ()
 
 invalidateUserSessions (int $userId)
 
bool sendMail (string $message, string $recipients, string $cc, string $senderAddress, string $senderName='', string $replyTo='')
 
 getStorageFolders ()
 
 getSignedStorageFolders ()
 
 shallEnforceLoginSigning ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Frontend\Plugin\AbstractPlugin
array applyStdWrapRecursive (array $conf, $level=0)
 
array removeInternalNodeValue (array $typoscript)
 

Protected Attributes

bool $userIsLoggedIn
 
string $template
 
string $redirectUrl = ''
 
bool $noRedirect = false
 
string $logintype
 
RedirectUrlValidator $urlValidator
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Frontend\Plugin\AbstractPlugin
array $LOCAL_LANG_UNSET = array( )
 
TypoScriptFrontendController $frontendController
 
MarkerBasedTemplateService $templateService
 

Detailed Description

Plugin 'Website User Login' for the 'felogin' extension.

this is a concrete TYPO3 implementation and solely used for EXT:felogin and not part of TYPO3's Core API.

Deprecated:
‪The pibase felogin plugin is deprecated since TYPO3 10.4 and will be removed in version 11.0

Definition at line 44 of file FrontendLoginController.php.

Member Function Documentation

◆ changePassword()

◆ flexFormValue()

string TYPO3\CMS\Felogin\Controller\FrontendLoginController::flexFormValue (   $var,
  $sheet 
)
protected

Loads a variable from the flexform

Parameters
string$var‪Name of variable
string$sheet‪Name of sheet
Returns
‪string Value of var

Definition at line 974 of file FrontendLoginController.php.

References TYPO3\CMS\Frontend\Plugin\AbstractPlugin\pi_getFFvalue().

Referenced by TYPO3\CMS\Felogin\Controller\FrontendLoginController\getDisplayText(), TYPO3\CMS\Felogin\Controller\FrontendLoginController\mergeflexFormValuesIntoConf(), and TYPO3\CMS\Felogin\Controller\FrontendLoginController\showLogout().

◆ generateAndSendHash()

string TYPO3\CMS\Felogin\Controller\FrontendLoginController::generateAndSendHash (   $user)
protected

Generates a hashed link and send it with email

Parameters
array$user‪Contains user data
Returns
‪string Empty string with success, error message with no success

Definition at line 471 of file FrontendLoginController.php.

References $GLOBALS, TYPO3\CMS\Frontend\Plugin\AbstractPlugin\pi_getLL(), TYPO3\CMS\Frontend\Plugin\AbstractPlugin\pi_getPageLink(), and TYPO3\CMS\Felogin\Controller\FrontendLoginController\sendMail().

Referenced by TYPO3\CMS\Felogin\Controller\FrontendLoginController\showForgot().

◆ generatePassword()

string TYPO3\CMS\Felogin\Controller\FrontendLoginController::generatePassword (   $len)
protected

Is used by forgot password - function with md5 option.

Parameters
int$len‪Length of new password
Returns
‪string New password

Definition at line 1039 of file FrontendLoginController.php.

Referenced by TYPO3\CMS\Felogin\Controller\FrontendLoginController\showForgot().

◆ getDisplayText()

string TYPO3\CMS\Felogin\Controller\FrontendLoginController::getDisplayText (   $label,
  $stdWrapArray = [] 
)
protected

◆ getPageLink()

string TYPO3\CMS\Felogin\Controller\FrontendLoginController::getPageLink (   $label,
  $piVars,
  $returnUrl = false 
)
protected

◆ getPreserveGetVars()

array TYPO3\CMS\Felogin\Controller\FrontendLoginController::getPreserveGetVars ( )
protected

Add additional parameters for links according to TS setting preserveGETvars. Possible values are "all" or a comma separated list of allowed GET-vars. Supports multi-dimensional GET-vars. Some hardcoded values are dropped.

Returns
‪array additionalParams-array

Definition at line 1012 of file FrontendLoginController.php.

References TYPO3\CMS\Core\Utility\ArrayUtility\intersectRecursive(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

Referenced by TYPO3\CMS\Felogin\Controller\FrontendLoginController\getPageLink().

◆ getSignedStorageFolders()

◆ getStorageFolders()

◆ getUserFieldMarkers()

array TYPO3\CMS\Felogin\Controller\FrontendLoginController::getUserFieldMarkers ( )
protected

◆ invalidateUserSessions()

TYPO3\CMS\Felogin\Controller\FrontendLoginController::invalidateUserSessions ( int  $userId)
protected

Invalidate all frontend user sessions by given user id

Parameters
int$userId‪the user UID

Definition at line 1094 of file FrontendLoginController.php.

Referenced by TYPO3\CMS\Felogin\Controller\FrontendLoginController\changePassword().

◆ main()

◆ mergeflexFormValuesIntoConf()

TYPO3\CMS\Felogin\Controller\FrontendLoginController::mergeflexFormValuesIntoConf ( )
protected

◆ processRedirect()

array TYPO3\CMS\Felogin\Controller\FrontendLoginController::processRedirect ( )
protected

◆ sendMail()

bool TYPO3\CMS\Felogin\Controller\FrontendLoginController::sendMail ( string  $message,
string  $recipients,
string  $cc,
string  $senderAddress,
string  $senderName = '',
string  $replyTo = '' 
)
protected

Sends "forgot password" mail

Parameters
string$message‪The message content. If blank, no email is sent.
string$recipients‪Comma list of recipient email addresses
string$cc‪Email address of recipient of an extra mail. The same mail will be sent ONCE more; not using a CC header but sending twice.
string$senderAddress‪"From" email address
string$senderName‪Optional "From" name
string$replyTo‪Optional "Reply-To" header email address.
Returns
‪bool Returns TRUE if sent

Definition at line 1112 of file FrontendLoginController.php.

References TYPO3\CMS\Core\Utility\MailUtility\parseAddresses().

Referenced by TYPO3\CMS\Felogin\Controller\FrontendLoginController\generateAndSendHash().

◆ shallEnforceLoginSigning()

◆ showForgot()

◆ showLogin()

◆ showLogout()

Member Data Documentation

◆ $extKey

string TYPO3\CMS\Felogin\Controller\FrontendLoginController::$extKey = 'felogin'

The extension key.

Definition at line 56 of file FrontendLoginController.php.

◆ $logintype

string TYPO3\CMS\Felogin\Controller\FrontendLoginController::$logintype
protected

Logintype (given as GPvar), possible: login, logout

Definition at line 86 of file FrontendLoginController.php.

Referenced by TYPO3\CMS\Felogin\Controller\FrontendLoginController\main().

◆ $noRedirect

bool TYPO3\CMS\Felogin\Controller\FrontendLoginController::$noRedirect = false
protected

Flag for disable the redirect

Definition at line 80 of file FrontendLoginController.php.

◆ $prefixId

string TYPO3\CMS\Felogin\Controller\FrontendLoginController::$prefixId = 'tx_felogin_pi1'

◆ $redirectUrl

string TYPO3\CMS\Felogin\Controller\FrontendLoginController::$redirectUrl = ''
protected

◆ $referer

string TYPO3\CMS\Felogin\Controller\FrontendLoginController::$referer

◆ $template

string TYPO3\CMS\Felogin\Controller\FrontendLoginController::$template
protected

Holds the template for FE rendering

Definition at line 68 of file FrontendLoginController.php.

Referenced by TYPO3\CMS\Felogin\Controller\FrontendLoginController\main().

◆ $urlValidator

RedirectUrlValidator TYPO3\CMS\Felogin\Controller\FrontendLoginController::$urlValidator
protected

Definition at line 96 of file FrontendLoginController.php.

◆ $userIsLoggedIn

bool TYPO3\CMS\Felogin\Controller\FrontendLoginController::$userIsLoggedIn
protected

Is user logged in?

Definition at line 62 of file FrontendLoginController.php.